mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Fix a spot where a function could return without bringing
a channel out of autoservice. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@134475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -227,8 +227,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);
|
||||
|
Reference in New Issue
Block a user