mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	Add the Uniqueid header to Userevent.
(closes issue #16962) Reported by: jlpedrosa Patches: patch.diff uploaded by jlpedrosa (license 1002) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@317915 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -85,7 +85,12 @@ static int userevent_exec(struct ast_channel *chan, const char *data) | ||||
| 		ast_str_append(&body, 0, "%s\r\n", args.extra[x]); | ||||
| 	} | ||||
|  | ||||
| 	manager_event(EVENT_FLAG_USER, "UserEvent", "UserEvent: %s\r\n%s", args.eventname, ast_str_buffer(body)); | ||||
| 	manager_event(EVENT_FLAG_USER, "UserEvent", | ||||
| 			"UserEvent: %s\r\n" | ||||
| 			"Uniqueid: %s\r\n" | ||||
| 			"%s", | ||||
| 			args.eventname, chan->uniqueid, ast_str_buffer(body)); | ||||
|  | ||||
| 	ast_free(body); | ||||
|  | ||||
| 	return 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user