aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_speech_utils.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-26 18:14:33 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-26 18:14:33 +0000
commit072a1a41336a8131fc7999de049771c23482344e (patch)
tree96db4b9260a902091e8c3dc5e3887db73234a0aa /apps/app_speech_utils.c
parent16fea668c0c1b7192d8ed85277f06b2057992404 (diff)
Merged revisions 59213 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r59213 | file | 2007-03-26 14:13:06 -0400 (Mon, 26 Mar 2007) | 2 lines Make SpeechBackground obey the digit timeout value. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@59214 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_speech_utils.c')
-rw-r--r--apps/app_speech_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c
index 23de1cdad..3342d4c31 100644
--- a/apps/app_speech_utils.c
+++ b/apps/app_speech_utils.c
@@ -669,7 +669,7 @@ static int speech_background(struct ast_channel *chan, void *data)
if (chan->stream != NULL) {
ast_stopstream(chan);
/* Change timeout to be 5 seconds for DTMF input */
- timeout = 5;
+ timeout = (chan->pbx && chan->pbx->dtimeout) ? chan->pbx->dtimeout : 5;
time(&start);
started = 1;
}