[Home]

Summary:ASTERISK-24124: manager: UserEvent action skips over the first header
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2014-07-25 12:33:57Date Closed:2014-07-29 14:44:29
Priority:MajorRegression?Yes
Status:Closed/CompleteComponents:Core/ManagerInterface
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:In a prior patch to Asterisk (trunk only), we made it so that the UserEvent action would skip over the first header in an attempt to bypass emitting the Action header in the resulting event:

{quote}
r404832 | kharwell | 2014-01-03 14:02:03 -0600 (Fri, 03 Jan 2014) | 11 lines

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)

------------------------------------------------------------------------
{quote}

Unfortunately, there's no guarantee that the {{Action}} header is first. It can be anywhere in the message.

The correct way to fix this is to iterate through all headers, and skip a header if the header is either {{UserEvent}} or {{Action}}.
Comments: