From: Kevin Harwell Date: Fri, 3 Jan 2014 20:02:03 +0000 (+0000) Subject: manager: UserEvent including action on output X-Git-Tag: 13.0.0-beta1~685 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd4be333fbc484fa5a8bb39e0615fbeed8160777;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/manager.c b/main/manager.c index 12dda4c595..15f10f7edc 100644 --- a/main/manager.c +++ b/main/manager.c @@ -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]); }