]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 57317 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 1 Mar 2007 22:21:44 +0000 (22:21 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 1 Mar 2007 22:21:44 +0000 (22:21 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r57317 | file | 2007-03-01 17:19:32 -0500 (Thu, 01 Mar 2007) | 2 lines

Don't even attempt to optimize things when a proxy channel is involved. It will just explode in weird and unexplaineable ways. (issue #9175 reported by clegall_proformatique)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@57318 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index 4f4b75c5f12e47a7d01441a7f6f9fae42fd688ef..df573390aab430ef02e505de8619c443bc42421e 100644 (file)
@@ -220,7 +220,7 @@ static int local_answer(struct ast_channel *ast)
 
 static void check_bridge(struct local_pvt *p, int isoutbound)
 {
-       if (ast_test_flag(p, LOCAL_ALREADY_MASQED) || ast_test_flag(p, LOCAL_NO_OPTIMIZATION) || !p->chan || !p->owner)
+       if (ast_test_flag(p, LOCAL_ALREADY_MASQED) || ast_test_flag(p, LOCAL_NO_OPTIMIZATION) || !p->chan || !p->owner || (p->chan->_bridge != ast_bridged_channel(p->chan)))
                return;
 
        /* only do the masquerade if we are being called on the outbound channel,