[asterisk-commits] jpeeler: trunk r237323 - /trunk/res/res_agi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 4 10:24:54 CST 2010


Author: jpeeler
Date: Mon Jan  4 10:24:51 2010
New Revision: 237323

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=237323
Log:
Fix timeout for AGI command speech recognize.

(closes issue #16297)
Reported by: semond

Modified:
    trunk/res/res_agi.c

Modified: trunk/res/res_agi.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_agi.c?view=diff&rev=237323&r1=237322&r2=237323
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Mon Jan  4 10:24:51 2010
@@ -2788,7 +2788,7 @@
 		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);
 			}




More information about the asterisk-commits mailing list