automerge commit

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@57362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Automerge Script
2007-03-01 23:07:54 +00:00
parent 3f98583e26
commit c3a5b0d8e1

View 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,