[asterisk-commits] file: branch 1.2 r57317 - /branches/1.2/channels/chan_local.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Mar 1 15:19:32 MST 2007


Author: file
Date: Thu Mar  1 16:19:32 2007
New Revision: 57317

URL: http://svn.digium.com/view/asterisk?view=rev&rev=57317
Log:
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)

Modified:
    branches/1.2/channels/chan_local.c

Modified: branches/1.2/channels/chan_local.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_local.c?view=diff&rev=57317&r1=57316&r2=57317
==============================================================================
--- branches/1.2/channels/chan_local.c (original)
+++ branches/1.2/channels/chan_local.c Thu Mar  1 16:19:32 2007
@@ -187,7 +187,7 @@
 {
 	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,



More information about the asterisk-commits mailing list