diff options
author | Mark Michelson <mmichelson@digium.com> | 2008-07-30 18:33:12 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2008-07-30 18:33:12 +0000 |
commit | 8b310d67b133c27c25526d78ae088de367a9e153 (patch) | |
tree | c331f83784ed249ffa25f7307d44c3f1b376d79a | |
parent | 01e189f6d8cdac27bd020044faad5371dade05ed (diff) |
Merged revisions 134475 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r134475 | mmichelson | 2008-07-30 13:31:47 -0500 (Wed, 30 Jul 2008) | 4 lines
Fix a spot where a function could return without bringing
a channel out of autoservice.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@134476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/app.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/app.c b/main/app.c index 0ea5cefe6..eb3fa4f02 100644 --- a/main/app.c +++ b/main/app.c @@ -299,8 +299,12 @@ int ast_dtmf_stream(struct ast_channel *chan, struct ast_channel *peer, const ch res = ast_waitfor(chan, 100); /* ast_waitfor will return the number of remaining ms on success */ - if (res < 0) + if (res < 0) { + if (peer) { + ast_autoservice_stop(peer); + } return res; + } if (ast_opt_transmit_silence) { silgen = ast_channel_start_silence_generator(chan); |