[Asterisk-cvs] asterisk channel.c,1.96,1.97

citats at lists.digium.com citats at lists.digium.com
Wed Apr 21 00:47:51 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/home/citats/cvs/asterisk

Modified Files:
	channel.c 
Log Message:
Make manager "Link" and "Unlink" events include the channel uniqueids (bug 1456)


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -d -r1.96 -r1.97
--- channel.c	20 Apr 2004 03:16:01 -0000	1.96
+++ channel.c	21 Apr 2004 04:52:18 -0000	1.97
@@ -2323,8 +2323,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 */
@@ -2345,8 +2347,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;
 			}
@@ -2364,8 +2368,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;
 			}
 		}
@@ -2445,8 +2451,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 svn-commits mailing list