diff options
author | Russell Bryant <russell@russellbryant.com> | 2011-05-06 20:44:53 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2011-05-06 20:44:53 +0000 |
commit | 4fc020c96583d3ecd4b8590435b5fe8209047d9d (patch) | |
tree | 76a2b214814ee6bbb4362718bb26aed2414aea14 /apps/app_userevent.c | |
parent | 33b7cc2ef6e686637e0c3d294ee90b5e2e7dd7e1 (diff) |
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
Diffstat (limited to 'apps/app_userevent.c')
-rw-r--r-- | apps/app_userevent.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/app_userevent.c b/apps/app_userevent.c index f149d8524..1e1e4a9cd 100644 --- a/apps/app_userevent.c +++ b/apps/app_userevent.c @@ -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; |