aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_speech_utils.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-18 19:17:34 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-18 19:17:34 +0000
commitba6c66bdf60ce4785a48a832234bafbc67c4212b (patch)
treed9af23343eea06fb217f491464a9fa421f24a805 /apps/app_speech_utils.c
parent8be2579ceff14bd1cef90915475f5069bf921b73 (diff)
Only start timeout once we reach the end of the files to play back.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51251 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_speech_utils.c')
-rw-r--r--apps/app_speech_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c
index 8bd07e359..d66800f77 100644
--- a/apps/app_speech_utils.c
+++ b/apps/app_speech_utils.c
@@ -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;
}