mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-01 18:09:41 +00:00
Add Masquerade manager event which trips when a masquerade happens (issue #7840 reported by moy)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -25,3 +25,5 @@ Changes since Asterisk 1.4-beta was branched:
|
|||||||
CallerIDNum is used for number and CallerIDName for name.
|
CallerIDNum is used for number and CallerIDName for name.
|
||||||
* setinterfacevar option in queues.conf also now sets a variable
|
* setinterfacevar option in queues.conf also now sets a variable
|
||||||
called MEMBERNAME which contains the member's name.
|
called MEMBERNAME which contains the member's name.
|
||||||
|
* Added Masquerade manager event for when a masquerade happens between
|
||||||
|
two channels.
|
||||||
|
@@ -3215,6 +3215,9 @@ int ast_do_masquerade(struct ast_channel *original)
|
|||||||
ast_log(LOG_DEBUG, "Actually Masquerading %s(%d) into the structure of %s(%d)\n",
|
ast_log(LOG_DEBUG, "Actually Masquerading %s(%d) into the structure of %s(%d)\n",
|
||||||
clone->name, clone->_state, original->name, original->_state);
|
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
|
/* 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
|
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
|
channel's backend. I'm not sure we're going to keep this function, because
|
||||||
|
Reference in New Issue
Block a user