aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-26 17:13:36 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-26 17:13:36 +0000
commit4673efada6380b125f968bf4d6801d30655db528 (patch)
tree9780725d0d0991f96d054cdbe7bd2d24471be194 /main
parentcc013d0f9ac77aa4166206e1f05d099ce8146224 (diff)
Send a manager event when the manager BridgeAction command is used.
(closes issue #16769) Reported by: syspert Patches: bridgeaction.patch uploaded by syspert (license 938) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249105 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/features.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/main/features.c b/main/features.c
index 1c5218433..2baf79398 100644
--- a/main/features.c
+++ b/main/features.c
@@ -4534,7 +4534,7 @@ static int action_bridge(struct mansession *s, const struct message *m)
const char *channela = astman_get_header(m, "Channel1");
const char *channelb = astman_get_header(m, "Channel2");
const char *playtone = astman_get_header(m, "Tone");
- struct ast_channel *chana = NULL, *chanb = NULL;
+ struct ast_channel *chana = NULL, *chanb = NULL, *chans[2];
struct ast_channel *tmpchana = NULL, *tmpchanb = NULL;
struct ast_bridge_thread_obj *tobj = NULL;
@@ -4628,6 +4628,14 @@ static int action_bridge(struct mansession *s, const struct message *m)
}
}
+ chans[0] = tmpchana;
+ chans[1] = tmpchanb;
+
+ ast_manager_event_multichan(EVENT_FLAG_CALL, "BridgeAction", 2, chans,
+ "Response: Success\r\n"
+ "Channel1: %s\r\n"
+ "Channel2: %s\r\n", tmpchana->name, tmpchanb->name);
+
bridge_call_thread_launch(tobj);
astman_send_ack(s, m, "Launched bridge thread with success");