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
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]);
}