Include UniqueId in rename events... (bug #2306)
authorMark Spencer <markster@digium.com>
Thu, 26 Aug 2004 22:45:26 +0000 (22:45 +0000)
committerMark Spencer <markster@digium.com>
Thu, 26 Aug 2004 22:45:26 +0000 (22:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3660 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index 464e15c..d7a6af9 100755 (executable)
--- a/channel.c
+++ b/channel.c
@@ -2203,8 +2203,8 @@ int ast_do_masquerade(struct ast_channel *original)
        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 @@ int ast_do_masquerade(struct ast_channel *original)
        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. */