aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_speech_utils.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-26 18:13:06 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-26 18:13:06 +0000
commit16a7a7bc6fdad1e2685ad7c779cb8f4ad3c3e33b (patch)
tree218c2b097a1fb0d23fe1b1fa19ae4774b554ae0c /apps/app_speech_utils.c
parent48f37b7c32dbbdca67cafce59abe6f23167f8989 (diff)
Make SpeechBackground obey the digit timeout value.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59213 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 5e236ddc6..73fe3ce13 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;
}