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
This commit is contained in:
Joshua Colp
2007-03-26 18:13:06 +00:00
parent cd3238d543
commit a541ea96e1

View File

@@ -669,7 +669,7 @@ static int speech_background(struct ast_channel *chan, void *data)
if (chan->stream != NULL) { if (chan->stream != NULL) {
ast_stopstream(chan); ast_stopstream(chan);
/* Change timeout to be 5 seconds for DTMF input */ /* Change timeout to be 5 seconds for DTMF input */
timeout = 5; timeout = (chan->pbx && chan->pbx->dtimeout) ? chan->pbx->dtimeout : 5;
time(&start); time(&start);
started = 1; started = 1;
} }