diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-04 16:24:51 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-04 16:24:51 +0000 |
commit | c6678d2ee6fd461b684b26c3fab30b57272301d4 (patch) | |
tree | b865ec29d2685043abeb182a9d6155e25dcad278 /res/res_agi.c | |
parent | 62f128dded1d91a91544584681b53d8023cd7f46 (diff) |
Fix timeout for AGI command speech recognize.
(closes issue #16297)
Reported by: semond
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@237323 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_agi.c')
-rw-r--r-- | res/res_agi.c | 2 |
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); } |