aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-24 16:41:28 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-24 16:41:28 +0000
commit1015243185e75f0cd96f4c12ae3267d02d5340c1 (patch)
tree8d225178204d1861fb00e5d7602d19ed0f33898c /channels
parent320c9c0128b953e46dab0f9f04a4fee8f619fc3d (diff)
Allow use of immediate=yes with EM / EM_W signalling
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@906 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_zap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 87268c54f..1c16aec5d 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -3666,8 +3666,11 @@ static void *ss_thread(void *data)
else
ast_dsp_digitmode(p->dsp,DSP_DIGITMODE_DTMF | p->dtmfrelax);
}
- /* Wait for the first digit (up to 5 seconds). */
- res = ast_waitfordigit(chan,5000);
+ /* Wait for the first digit only if immediate=no */
+ if (!p->immediate)
+ /* Wait for the first digit (up to 5 seconds). */
+ res = ast_waitfordigit(chan,5000);
+ else res = 0;
if (res > 0) {
/* save first char */
dtmfbuf[0] = res;