dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
jpeeler 2010-01-04 16:24:51 +00:00
parent 62f128dded
commit c6678d2ee6
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}