From a541ea96e103133b5d2bccedc969d39f4fecb67b Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Mon, 26 Mar 2007 18:13:06 +0000 Subject: [PATCH] Make SpeechBackground obey the digit timeout value. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@59213 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_speech_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c index 5e236ddc64..73fe3ce13d 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; }