diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-04 16:26:26 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-04 16:26:26 +0000 |
commit | 895644641e8a3bf1746f4dd9d83d68295a9b98e8 (patch) | |
tree | 0c078067e9e4a79f1fb5f1791e092251202e66c8 /res | |
parent | 12c31f9a0d35c0cfd95b601bd67d3cad1d088422 (diff) |
Merged revisions 237323 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r237323 | jpeeler | 2010-01-04 10:24:51 -0600 (Mon, 04 Jan 2010) | 5 lines
Fix timeout for AGI command speech recognize.
(closes issue #16297)
Reported by: semond
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@237324 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-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 b02af1797..86846b03a 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -1978,7 +1978,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); } |