i/ got the loop drop the wrong way around
authorBen Kramer <bkramer@voicetronix.com.au>
Thu, 3 Nov 2005 21:49:20 +0000 (21:49 +0000)
committerBen Kramer <bkramer@voicetronix.com.au>
Thu, 3 Nov 2005 21:49:20 +0000 (21:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6957 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_vpb.c

index 7ee4dbd..7c1b1c4 100755 (executable)
@@ -2046,9 +2046,9 @@ static int vpb_hangup(struct ast_channel *ast)
                        stoptone(p->handle);
                }
                #ifdef VPB_PRI
-               vpb_setloop_async(p->handle, VPB_ONHOOK);
-               vpb_sleep(500);
                vpb_setloop_async(p->handle, VPB_OFFHOOK);
+               vpb_sleep(100);
+               vpb_setloop_async(p->handle, VPB_ONHOOK);
                #endif
        } else {
                stoptone(p->handle); /* Terminates any dialing */