Fixed bug in FXOGS. Was not closing loop after starting.
authorJim Dixon <telesistant@hotmail.com>
Tue, 10 Feb 2004 07:24:15 +0000 (07:24 +0000)
committerJim Dixon <telesistant@hotmail.com>
Tue, 10 Feb 2004 07:24:15 +0000 (07:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2147 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 45b07b9..92531af 100755 (executable)
@@ -4794,6 +4794,7 @@ static int handle_init_event(struct zt_pvt *i, int event)
                case SIG_FXOLS:
                case SIG_FXOGS:
                case SIG_FXOKS:
+                       zt_set_hook(i->subs[SUB_REAL].zfd, ZT_OFFHOOK);
                        if (i->cidspill) {
                                /* Cancel VMWI spill */
                                free(i->cidspill);