mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Only start timeout once we reach the end of the files to play back.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user