[asterisk-commits] file: branch 1.4 r121442 - /branches/1.4/main/channel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jun 10 07:52:06 CDT 2008
Author: file
Date: Tue Jun 10 07:52:06 2008
New Revision: 121442
URL: http://svn.digium.com/view/asterisk?view=rev&rev=121442
Log:
Update BRIDGEPEER variable before we do a generic bridge in case we just broke out of a native bridge and fell through to generic.
(closes issue #12815)
Reported by: ramonpeek
Modified:
branches/1.4/main/channel.c
Modified: branches/1.4/main/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/channel.c?view=diff&rev=121442&r1=121441&r2=121442
==============================================================================
--- branches/1.4/main/channel.c (original)
+++ branches/1.4/main/channel.c Tue Jun 10 07:52:06 2008
@@ -4114,6 +4114,12 @@
o0nativeformats = c0->nativeformats;
o1nativeformats = c1->nativeformats;
}
+
+ if (!ast_strlen_zero(pbx_builtin_getvar_helper(c0, "BRIDGEPEER")))
+ pbx_builtin_setvar_helper(c0, "BRIDGEPEER", c1->name);
+ if (!ast_strlen_zero(pbx_builtin_getvar_helper(c1, "BRIDGEPEER")))
+ pbx_builtin_setvar_helper(c1, "BRIDGEPEER", c0->name);
+
res = ast_generic_bridge(c0, c1, config, fo, rc, nexteventts);
if (res != AST_BRIDGE_RETRY)
break;
More information about the asterisk-commits
mailing list