[Asterisk-Dev] [PATCH] unique channel identifiers for the LINK/UNLINK manager
events
Klaus-Peter Junghanns
kpj at junghanns.net
Wed Nov 26 07:15:32 MST 2003
Hi,
this is quite useful.
regards
kapejod
--
Klaus-Peter Junghanns
CEO,CTO
Junghanns.NET GmbH
Breite Strasse 13 - 12167 Berlin - Germany
fon: +49 30 79705392
fax: +49 30 79705391
iaxtel: 1-700-157-8753
email: kpj at junghanns.net
http://www.junghanns.net/asterisk
--- ./asterisk/channel.c.orig 2003-09-18 14:06:29.000000000 -0700
+++ ./asterisk/channel.c 2003-11-26 06:33:50.000000000 -0800
@@ -2166,8 +2166,10 @@
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 */
@@ -2188,8 +2190,10 @@
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;
}
@@ -2207,8 +2211,10 @@
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;
}
}
@@ -2288,8 +2294,10 @@
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;
}
More information about the asterisk-dev
mailing list