Merged revisions 59213 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Mon, 26 Mar 2007 18:14:33 +0000 (18:14 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 26 Mar 2007 18:14:33 +0000 (18:14 +0000)
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: https://origsvn.digium.com/svn/asterisk/trunk@59214 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_speech_utils.c

index 23de1cd..3342d4c 100644 (file)
@@ -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;
                                        }