[asterisk-bugs] [JIRA] (ASTERISK-24124) manager: UserEvent action skips over the first header
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Fri Jul 25 12:35:57 CDT 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-24124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Jordan updated ASTERISK-24124:
-----------------------------------
Status: Open (was: Triage)
> manager: UserEvent action skips over the first header
> -----------------------------------------------------
>
> Key: ASTERISK-24124
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-24124
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/ManagerInterface
> Reporter: Matt Jordan
> Assignee: Mark Michelson
>
> 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}}.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list