]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Only start timeout once we reach the end of the files to play back.
authorJoshua Colp <jcolp@digium.com>
Thu, 18 Jan 2007 19:17:34 +0000 (19:17 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 18 Jan 2007 19:17:34 +0000 (19:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51251 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_speech_utils.c

index 8bd07e3591f481098428a16b4509384e51397894..d66800f7792fdfb0c22858b7684a7b2312c04877 100644 (file)
@@ -609,7 +609,7 @@ static int speech_background(struct ast_channel *chan, void *data)
                         /* 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;
                         }