mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-17 13:09:57 +00:00
Merged revisions 101152 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r101152 | oej | 2008-01-30 12:20:31 +0100 (Ons, 30 Jan 2008) | 7 lines Stop musiconhold on attended transfer. (closes issue #11872) Reported by: gareth Patches: svn-101018.patch uploaded by gareth (license 208) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+3
-1
@@ -15430,7 +15430,9 @@ static int sip_park(struct ast_channel *chan1, struct ast_channel *chan2, struct
|
||||
static void ast_quiet_chan(struct ast_channel *chan)
|
||||
{
|
||||
if (chan && chan->_state == AST_STATE_UP) {
|
||||
if (chan->generatordata)
|
||||
if (ast_test_flag(chan, AST_FLAG_MOH))
|
||||
ast_moh_stop(chan);
|
||||
else if (chan->generatordata)
|
||||
ast_deactivate_generator(chan);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user