[asterisk-bugs] [JIRA] (ASTERISK-20628) main/pbx.c - ShowDialPlan generates with error if no Exten: was presented and there are no exten => lines present

Jaco Kroon (JIRA) noreply at issues.asterisk.org
Tue Oct 30 09:04:18 CDT 2012


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jaco Kroon updated ASTERISK-20628:
----------------------------------

    Attachment: asterisk-showdialplan-incorrect-error.patch

It turns out that manager_get_header will never return NULL, resulting in the error check detecting that a Exten: header was supplied, since there are no extensions the counter being checked is thus zero as well, resulting in the inappropriate error.

This patch fixes it, and also corrects the incorrect check for a supplied context (not that it's particularly likely to ever trigger).
                
> main/pbx.c - ShowDialPlan generates with error if no Exten: was presented and there are no exten => lines present
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-20628
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20628
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: PBX/General
>    Affects Versions: 1.8.15.0
>            Reporter: Jaco Kroon
>         Attachments: asterisk-showdialplan-incorrect-error.patch
>
>
> When I request a:
> Action: ShowDialplan
> Context: hints
> and hints is defined as:
> [hints]
> include => foo
> include => bar
> Then the list will contain the ListDialplan entries for the two includes, but then give an Error as well:
> Response: Error
> Message: Did not find extension @hints
> This should not be the case, even if there were no include => lines it should still end with a EventList: Complete response and not generate an error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list