Skip to content
Snippets Groups Projects
Commit 64fb8518 authored by Olle Johansson's avatar Olle Johansson
Browse files

Add manager event for local channel semi-bridge

(issue AST-17623)

Review: https://reviewboard.asterisk.org/r/1154



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@333070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 436ceb82
No related branches found
No related tags found
No related merge requests found
......@@ -905,6 +905,19 @@ static int local_call(struct ast_channel *ast, char *dest, int timeout)
goto return_cleanup;
}
manager_event(EVENT_FLAG_CALL, "LocalBridge",
"Channel1: %s\r\n"
"Channel2: %s\r\n"
"Uniqueid1: %s\r\n"
"Uniqueid2: %s\r\n"
"Context: %s\r\n"
"Exten: %s\r\n"
"LocalOptimization: %s\n",
p->owner->name, p->chan->name, p->owner->uniqueid, p->chan->uniqueid,
p->context, p->exten,
ast_test_flag(p, LOCAL_NO_OPTIMIZATION) ? "Yes" : "No");
/* Start switch on sub channel */
if (!(res = ast_pbx_start(chan))) {
ao2_lock(p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment