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
10-digiumphones
Russell Bryant 14 years ago
parent 33b7cc2ef6
commit 4fc020c965

@ -26,6 +26,7 @@ Asterisk Manager Interface
* DAHDIShowChannels, SIPshowpeer, SIPpeers, and IAXpeers now contains a
Description field that is set by 'description' in the channel configuration
file.
* Added Uniqueid header to UserEvent.
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]);
}
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;

Loading…
Cancel
Save