[asterisk-commits] file: branch 1.4 r51251 - /branches/1.4/apps/app_speech_utils.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jan 18 12:17:35 MST 2007


Author: file
Date: Thu Jan 18 13:17:34 2007
New Revision: 51251

URL: http://svn.digium.com/view/asterisk?view=rev&rev=51251
Log:
Only start timeout once we reach the end of the files to play back.

Modified:
    branches/1.4/apps/app_speech_utils.c

Modified: branches/1.4/apps/app_speech_utils.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_speech_utils.c?view=diff&rev=51251&r1=51250&r2=51251
==============================================================================
--- branches/1.4/apps/app_speech_utils.c (original)
+++ branches/1.4/apps/app_speech_utils.c Thu Jan 18 13:17:34 2007
@@ -609,7 +609,7 @@
                         /* If audio playback has stopped do a check for timeout purposes */
                         if (chan->streamid == -1 && chan->timingfunc == NULL)
                                 ast_stopstream(chan);
-                        if (chan->stream == NULL && timeout > 0 && started == 0) {
+                        if (chan->stream == NULL && timeout > 0 && started == 0 && !filename_tmp) {
 				time(&start);
 				started = 1;
                         }



More information about the asterisk-commits mailing list