[asterisk-bugs] [JIRA] (ASTERISK-23850) Park Application does not respect Return Context Priority

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Fri Dec 19 17:22:29 CST 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=224107#comment-224107 ] 

Richard Mudgett commented on ASTERISK-23850:
--------------------------------------------

The key is using a Macro to park the channel and returning the parked call to an extension *within* that active macro.  (I can get something like this to happen in v11 if I redirect a channel to an extension within an active macro.)  It is actually a bug in app_macro that erroneously restores the macro invocation location when it exits because of a redirect.  When PBX execution comes out of the last active macro level, the PBX executes the restored macro invocation location instead of the expected redirection location.

The situation described by this issue does not happen with v11 and earlier versions because parked channels are masqueraded into a brand new context so any PBX context location no longer exists.  In v12+, parked channels are no longer masqueraded.  They are just stuck into the park holding bridge.  Therefore, any active PBX context is still active when the parked channel leaves the parking lot.  The PBX context includes active Macro and Gosub levels.

> Park Application does not respect Return Context Priority
> ---------------------------------------------------------
>
>                 Key: ASTERISK-23850
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23850
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_parking
>    Affects Versions: 12.2.0
>         Environment: Linux 2.6.32-431.el6.i686 (CentOS 6.5 Variant)
>            Reporter: Andrew Nagy
>            Assignee: Richard Mudgett
>            Severity: Minor
>         Attachments: cli.txt, dialplan.txt, irc.txt
>
>
> Looking at https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+Application_Park
> One of the options for the application is c, used as a return point if the park times out. 
> The parameters are thus:
> c(context,extension,priority)
> It appears as if Asterisk 12 does not respect the priority portion and will return the call to the top of the context instead of at the priority point.
> I have attached the dialplan the CLI log and the relevant IRC conversation between rmudgett and mjordan for review.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list