mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Include UniqueId in rename events... (bug #2306)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -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. */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user