[asterisk-commits] file: trunk r69988 - in /trunk: ./ main/channel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jun 19 11:25:58 CDT 2007
Author: file
Date: Tue Jun 19 11:25:57 2007
New Revision: 69988
URL: http://svn.digium.com/view/asterisk?view=rev&rev=69988
Log:
Merged revisions 69987 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r69987 | file | 2007-06-19 12:24:31 -0400 (Tue, 19 Jun 2007) | 10 lines
Merged revisions 69986 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r69986 | file | 2007-06-19 12:21:29 -0400 (Tue, 19 Jun 2007) | 2 lines
Update BRIDGEPEER variable if set to the new channel name when a masquerade happens. (issue #9699 reported by dimas)
........
................
Modified:
trunk/ (props changed)
trunk/main/channel.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=69988&r1=69987&r2=69988
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Tue Jun 19 11:25:57 2007
@@ -4088,7 +4088,13 @@
ast_check_hangup(c1) ? "Yes" : "No");
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