From: Joshua Colp Date: Thu, 1 Mar 2007 22:19:32 +0000 (+0000) Subject: Don't even attempt to optimize things when a proxy channel is involved. It will just... X-Git-Tag: 1.2.16~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d5bf84ce15a6ae63898d60eed8055c44f341a78;p=thirdparty%2Fasterisk.git 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.2@57317 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_local.c b/channels/chan_local.c index b3bf3b24c5..df442a0ad5 100644 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -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,