Enable on hook transfer for vmwi
authorMark Spencer <markster@digium.com>
Sun, 23 Nov 2003 23:13:27 +0000 (23:13 +0000)
committerMark Spencer <markster@digium.com>
Sun, 23 Nov 2003 23:13:27 +0000 (23:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1785 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 969eb5d..a61e9af 100755 (executable)
@@ -4815,6 +4815,9 @@ static void *do_monitor(void *data)
                                                                        ast_log(LOG_WARNING, "Unable to flush input on channel %d\n", last->channel);
                                                                last->cidspill = malloc(8192);
                                                                if (last->cidspill) {
+                                                                       /* Turn on on hook transfer for 4 seconds */
+                                                                       x = 4000;
+                                                                       ioctl(last->subs[SUB_REAL].zfd, ZT_ONHOOKTRANSFER, &x);
                                                                        last->cidlen = vmwi_generate(last->cidspill, res, 1, AST_LAW(last));
                                                                        last->cidpos = 0;
 #if 0