summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorMatthew Nicholson <mnicholson@digium.com>2009-07-02 20:37:16 +0000
committerMatthew Nicholson <mnicholson@digium.com>2009-07-02 20:37:16 +0000
commitfd6a49beac9b834241c96bd4d80bde88efddf6ec (patch)
treee68af1e615558efe0f4ea19ea6e0e5aac053ef66 /main
parent719917fe59724bf2372d285094918f61bb442494 (diff)
Moved trigger for BRIDGE_END CEL event so that it is more accurate.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@204807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/channel.c3
-rw-r--r--main/features.c1
2 files changed, 1 insertions, 3 deletions
diff --git a/main/channel.c b/main/channel.c
index a95e8f217..b04dcd0b0 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -5837,7 +5837,6 @@ enum ast_bridge_result ast_channel_bridge(struct ast_channel *c0, struct ast_cha
"CallerID1: %s\r\n"
"CallerID2: %s\r\n",
c0->name, c1->name, c0->uniqueid, c1->uniqueid, S_OR(c0->cid.cid_num, "<unknown>"), S_OR(c1->cid.cid_num, "<unknown>"));
- ast_cel_report_event(c0, AST_CEL_BRIDGE_END, NULL, NULL, NULL);
ast_debug(1, "Returning from native bridge, channels: %s, %s\n", c0->name, c1->name);
@@ -5875,7 +5874,6 @@ enum ast_bridge_result ast_channel_bridge(struct ast_channel *c0, struct ast_cha
if (ast_channel_make_compatible(c0, c1)) {
ast_log(LOG_WARNING, "Can't make %s and %s compatible\n", c0->name, c1->name);
manager_bridge_event(0, 1, c0, c1);
- /* ast_cel_report_event(c0, AST_CEL_BRIDGE_END, NULL, NULL, NULL); */
return AST_BRIDGE_FAILED;
}
o0nativeformats = c0->nativeformats;
@@ -5903,7 +5901,6 @@ enum ast_bridge_result ast_channel_bridge(struct ast_channel *c0, struct ast_cha
c0->_bridge = NULL;
c1->_bridge = NULL;
- ast_cel_report_event(c0, AST_CEL_BRIDGE_END, NULL, NULL, NULL);
manager_event(EVENT_FLAG_CALL, "Unlink",
"Channel1: %s\r\n"
"Channel2: %s\r\n"
diff --git a/main/features.c b/main/features.c
index bb716fa80..12de34f4f 100644
--- a/main/features.c
+++ b/main/features.c
@@ -2945,6 +2945,7 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
ast_frfree(f);
}
+ ast_cel_report_event(chan, AST_CEL_BRIDGE_END, NULL, NULL, NULL);
before_you_go:
if (ast_test_flag(chan,AST_FLAG_BRIDGE_HANGUP_DONT)) {