[asterisk-commits] file: trunk r44273 - in /trunk: CHANGES
main/channel.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Oct 3 10:10:16 MST 2006
Author: file
Date: Tue Oct 3 12:10:16 2006
New Revision: 44273
URL: http://svn.digium.com/view/asterisk?rev=44273&view=rev
Log:
Add Masquerade manager event which trips when a masquerade happens (issue #7840 reported by moy)
Modified:
trunk/CHANGES
trunk/main/channel.c
Modified: trunk/CHANGES
URL: http://svn.digium.com/view/asterisk/trunk/CHANGES?rev=44273&r1=44272&r2=44273&view=diff
==============================================================================
--- trunk/CHANGES (original)
+++ trunk/CHANGES Tue Oct 3 12:10:16 2006
@@ -25,3 +25,5 @@
CallerIDNum is used for number and CallerIDName for name.
* setinterfacevar option in queues.conf also now sets a variable
called MEMBERNAME which contains the member's name.
+ * Added Masquerade manager event for when a masquerade happens between
+ two channels.
Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?rev=44273&r1=44272&r2=44273&view=diff
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Tue Oct 3 12:10:16 2006
@@ -3215,6 +3215,9 @@
ast_log(LOG_DEBUG, "Actually Masquerading %s(%d) into the structure of %s(%d)\n",
clone->name, clone->_state, original->name, original->_state);
+ manager_event(EVENT_FLAG_CALL, "Masquerade", "Clone: %s\r\nCloneState: %s\r\nOriginal: %s\r\nOriginalState: %s\r\n",
+ clone->name, ast_state2str(clone->_state), original->name, ast_state2str(original->_state));
+
/* XXX This is a seriously wacked out operation. We're essentially putting the guts of
the clone channel into the original channel. Start by killing off the original
channel's backend. I'm not sure we're going to keep this function, because
More information about the asterisk-commits
mailing list