projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
829e4e7
)
Allow use of immediate=yes with EM / EM_W signalling
author
Martin Pycko
<martinp@digium.com>
Thu, 24 Apr 2003 16:41:28 +0000
(16:41 +0000)
committer
Martin Pycko
<martinp@digium.com>
Thu, 24 Apr 2003 16:41:28 +0000
(16:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@906
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_zap.c
patch
|
blob
|
history
diff --git
a/channels/chan_zap.c
b/channels/chan_zap.c
index
87268c5
..
1c16aec
100755
(executable)
--- 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;