[asterisk-commits] file: branch 1.2 r69986 - /branches/1.2/channel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jun 19 11:21:29 CDT 2007
Author: file
Date: Tue Jun 19 11:21:29 2007
New Revision: 69986
URL: http://svn.digium.com/view/asterisk?view=rev&rev=69986
Log:
Update BRIDGEPEER variable if set to the new channel name when a masquerade happens. (issue #9699 reported by dimas)
Modified:
branches/1.2/channel.c
Modified: branches/1.2/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channel.c?view=diff&rev=69986&r1=69985&r2=69986
==============================================================================
--- branches/1.2/channel.c (original)
+++ branches/1.2/channel.c Tue Jun 19 11:21:29 2007
@@ -3596,6 +3596,12 @@
break;
}
+ /* See if the BRIDGEPEER variable needs to be updated */
+ 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);
+
if (c0->tech->bridge &&
(config->timelimit == 0) &&
(c0->tech->bridge == c1->tech->bridge) &&
More information about the asterisk-commits
mailing list