[Asterisk-cvs] asterisk channel.c,1.132,1.133

markster at lists.digium.com markster at lists.digium.com
Thu Aug 26 17:45:47 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv20588

Modified Files:
	channel.c 
Log Message:
Include UniqueId in rename events... (bug #2306)


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -d -r1.132 -r1.133
--- channel.c	6 Aug 2004 14:43:25 -0000	1.132
+++ channel.c	26 Aug 2004 22:45:26 -0000	1.133
@@ -2203,8 +2203,8 @@
 	strncpy(clone->name, masqn, sizeof(clone->name) - 1);
 	
 	/* Notify any managers of the change, first the masq then the other */
-	manager_event(EVENT_FLAG_CALL, "Rename", "Oldname: %s\r\nNewname: %s\r\n", newn, masqn);
-	manager_event(EVENT_FLAG_CALL, "Rename", "Oldname: %s\r\nNewname: %s\r\n", orig, newn);
+	manager_event(EVENT_FLAG_CALL, "Rename", "Oldname: %s\r\nNewname: %s\r\nUniqueid: %s\r\n", newn, masqn, clone->uniqueid);
+	manager_event(EVENT_FLAG_CALL, "Rename", "Oldname: %s\r\nNewname: %s\r\nUniqueid: %s\r\n", orig, newn, original->uniqueid);
 
 	/* Swap the guts */	
 	p = original->pvt;
@@ -2261,7 +2261,7 @@
 	snprintf(zombn, sizeof(zombn), "%s<ZOMBIE>", orig);
 	/* Mangle the name of the clone channel */
 	strncpy(clone->name, zombn, sizeof(clone->name) - 1);
-	manager_event(EVENT_FLAG_CALL, "Rename", "Oldname: %s\r\nNewname: %s\r\n", masqn, zombn);
+	manager_event(EVENT_FLAG_CALL, "Rename", "Oldname: %s\r\nNewname: %s\r\nUniqueid: %s\r\n", masqn, zombn, clone->uniqueid);
 
 	/* Keep the same language.  */
 	/* Update the type. */




More information about the svn-commits mailing list