Make immediate mode only work E&M
authorMark Spencer <markster@digium.com>
Fri, 25 Apr 2003 18:44:56 +0000 (18:44 +0000)
committerMark Spencer <markster@digium.com>
Fri, 25 Apr 2003 18:44:56 +0000 (18:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@913 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index a3eb6eb..973a086 100755 (executable)
@@ -3678,7 +3678,7 @@ static void *ss_thread(void *data)
                                ast_dsp_digitmode(p->dsp,DSP_DIGITMODE_DTMF | p->dtmfrelax);
                }
                /* Wait for the first digit only if immediate=no */
-               if (!p->immediate)
+               if (((p->sig == SIG_EM) || (p->sig == SIG_EMWINK)) && !p->immediate)
                        /* Wait for the first digit (up to 5 seconds). */
                        res = ast_waitfordigit(chan,5000);
                else res = 0;