mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
manager: UserEvent including action on output
AMI action UserEvent event response would include the action header in its keyvalue pairs list. Adjusted the start of the header loop to skip over the action part. (closes issue ASTERISK-22899) Reported by: outtolunc Patches: svn_manager.c.skip_action.diff.txt uploaded by outtolunc (license 5198) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5170,7 +5170,7 @@ static int action_userevent(struct mansession *s, const struct message *m)
|
||||
|
||||
ast_str_reset(body);
|
||||
|
||||
for (x = 0; x < m->hdrcount; x++) {
|
||||
for (x = 1; x < m->hdrcount; x++) {
|
||||
if (strncasecmp("UserEvent:", m->headers[x], strlen("UserEvent:"))) {
|
||||
ast_str_append(&body, 0, "%s\r\n", m->headers[x]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user