mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +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:
1
CHANGES
1
CHANGES
@@ -26,6 +26,7 @@ Asterisk Manager Interface
|
|||||||
* DAHDIShowChannels, SIPshowpeer, SIPpeers, and IAXpeers now contains a
|
* DAHDIShowChannels, SIPshowpeer, SIPpeers, and IAXpeers now contains a
|
||||||
Description field that is set by 'description' in the channel configuration
|
Description field that is set by 'description' in the channel configuration
|
||||||
file.
|
file.
|
||||||
|
* Added Uniqueid header to UserEvent.
|
||||||
|
|
||||||
Asterisk HTTP Server
|
Asterisk HTTP Server
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|||||||
@@ -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]);
|
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);
|
ast_free(body);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user