(closes issue #16297)
Reported by: semond
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237323
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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);
}