mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 01:36:48 +00:00
Merged revisions 56230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r56230 | file | 2007-02-22 13:44:24 -0500 (Thu, 22 Feb 2007) | 2 lines Only change the original or clone channel if it's the channel behind the proxy channel, not if it's just a regular bridged channel. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@56231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3200,10 +3200,10 @@ int ast_channel_masquerade(struct ast_channel *original, struct ast_channel *clo
|
||||
|
||||
/* each of these channels may be sitting behind a channel proxy (i.e. chan_agent)
|
||||
and if so, we don't really want to masquerade it, but its proxy */
|
||||
if (original->_bridge && (original->_bridge != ast_bridged_channel(original)))
|
||||
if (original->_bridge && (original->_bridge != ast_bridged_channel(original)) && (original->_bridge->_bridge != original))
|
||||
final_orig = original->_bridge;
|
||||
|
||||
if (clone->_bridge && (clone->_bridge != ast_bridged_channel(clone)))
|
||||
if (clone->_bridge && (clone->_bridge != ast_bridged_channel(clone)) && (clone->_bridge->_bridge != clone))
|
||||
final_clone = clone->_bridge;
|
||||
|
||||
if ((final_orig != original) || (final_clone != clone)) {
|
||||
|
Reference in New Issue
Block a user