aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-21 04:52:18 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-21 04:52:18 +0000
commit1213860e52d128f4405177714fe8f239172116f8 (patch)
treee3e55eb6a41a513b56006a593c13f81528825945 /channel.c
parent5b430079a829f63a8a3fae462cda358b21c0ada2 (diff)
Make manager "Link" and "Unlink" events include the channel uniqueids (bug 1456)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2732 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/channel.c b/channel.c
index ee2a5c6c5..035677b72 100755
--- a/channel.c
+++ b/channel.c
@@ -2323,8 +2323,10 @@ int ast_channel_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags
manager_event(EVENT_FLAG_CALL, "Link",
"Channel1: %s\r\n"
- "Channel2: %s\r\n",
- c0->name, c1->name);
+ "Channel2: %s\r\n"
+ "Uniqueid1: %s\r\n"
+ "Uniqueid2: %s\r\n",
+ c0->name, c1->name, c0->uniqueid, c1->uniqueid);
for (/* ever */;;) {
/* Stop if we're a zombie or need a soft hangup */
@@ -2345,8 +2347,10 @@ int ast_channel_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags
c1->bridge = NULL;
manager_event(EVENT_FLAG_CALL, "Unlink",
"Channel1: %s\r\n"
- "Channel2: %s\r\n",
- c0->name, c1->name);
+ "Channel2: %s\r\n"
+ "Uniqueid1: %s\r\n"
+ "Uniqueid2: %s\r\n",
+ c0->name, c1->name, c0->uniqueid, c1->uniqueid);
ast_log(LOG_DEBUG, "Returning from native bridge, channels: %s, %s\n",c0->name ,c1->name);
return 0;
}
@@ -2364,8 +2368,10 @@ int ast_channel_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags
ast_log(LOG_WARNING, "Can't make %s and %s compatible\n", c0->name, c1->name);
manager_event(EVENT_FLAG_CALL, "Unlink",
"Channel1: %s\r\n"
- "Channel2: %s\r\n",
- c0->name, c1->name);
+ "Channel2: %s\r\n"
+ "Uniqueid1: %s\r\n"
+ "Uniqueid2: %s\r\n",
+ c0->name, c1->name, c0->uniqueid, c1->uniqueid);
return -1;
}
}
@@ -2445,8 +2451,10 @@ tackygoto:
c1->bridge = NULL;
manager_event(EVENT_FLAG_CALL, "Unlink",
"Channel1: %s\r\n"
- "Channel2: %s\r\n",
- c0->name, c1->name);
+ "Channel2: %s\r\n"
+ "Uniqueid1: %s\r\n"
+ "Uniqueid2: %s\r\n",
+ c0->name, c1->name, c0->uniqueid, c1->uniqueid);
ast_log(LOG_DEBUG, "Bridge stops bridging channels %s and %s\n",c0->name,c1->name);
return res;
}