]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't even attempt to optimize things when a proxy channel is involved. It will just...
authorJoshua Colp <jcolp@digium.com>
Thu, 1 Mar 2007 22:19:32 +0000 (22:19 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 1 Mar 2007 22:19:32 +0000 (22:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57317 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index b3bf3b24c5e562781c9e7bdb5feb2cb90ffe2dae..df442a0ad5e103aa5976ad55fc556b32ae0da061 100644 (file)
@@ -187,7 +187,7 @@ static void check_bridge(struct local_pvt *p, int isoutbound)
 {
        if (p->alreadymasqed || p->nooptimization)
                return;
-       if (!p->chan || !p->owner)
+       if (!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,