summaryrefslogtreecommitdiff
path: root/res/res_agi.c
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@digium.com>2010-01-04 16:24:51 +0000
committerJeff Peeler <jpeeler@digium.com>2010-01-04 16:24:51 +0000
commitfb6606dc4a67ea2f451ae84270bd8015a2169417 (patch)
treeb865ec29d2685043abeb182a9d6155e25dcad278 /res/res_agi.c
parent91a45e4d3e8a22830779e4d139f062b990d76d5e (diff)
Fix timeout for AGI command speech recognize.
(closes issue #16297) Reported by: semond git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_agi.c')
-rw-r--r--res/res_agi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index fad66ce64..b4396acb2 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -2788,7 +2788,7 @@ static int handle_speechrecognize(struct ast_channel *chan, AGI *agi, int argc,
switch (speech->state) {
case AST_SPEECH_STATE_READY:
/* If the stream is done, start timeout calculation */
- if ((timeout > 0) && ((!chan->stream) || (chan->streamid == -1 && chan->timingfunc == NULL))) {
+ if ((timeout > 0) && start == 0 && ((!chan->stream) || (chan->streamid == -1 && chan->timingfunc == NULL))) {
ast_stopstream(chan);
time(&start);
}