[asterisk-bugs] [JIRA] (ASTERISK-16790) AEL inconsistency with global vs. local variable de-quoting

Sean Bright (JIRA) noreply at issues.asterisk.org
Thu Apr 11 17:02:47 CDT 2019


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

Sean Bright closed ASTERISK-16790.
----------------------------------

    Resolution: Workaround Available

I am hesitant to make changes here because no matter what we do we could be breaking current installs. While it is not ideal, to get symmetrical behavior from globals you can do something like this:

{noformat}
localvar = "default";
gvar = ${globalvar};
NoOp(${localvar});
NoOp(${gvar});
{noformat}

> AEL inconsistency with global vs. local variable de-quoting
> -----------------------------------------------------------
>
>                 Key: ASTERISK-16790
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-16790
>             Project: Asterisk
>          Issue Type: Bug
>          Components: PBX/pbx_ael
>            Reporter: Dmitry Andrianov
>            Severity: Minor
>
> in the asterisk.conf I have compat setting for
> app_set = 1.6
> Test AEL:
> {noformat}
> globals {
>         globalvar = "default";
> };
> ...
> 0004=>{
>         localvar = "default";
>         NoOp(${localvar});
>         NoOp(${globalvar});
> };
> {noformat}
> Dialing into 0004 gives:
> {noformat}
>     -- Executing [0004 at default:1] MSet("SIP/1003-0000000e", "localvar="default"") in new stack
>     -- Executing [0004 at default:2] NoOp("SIP/1003-0000000e", "default") in new stack
>     -- Executing [0004 at default:3] NoOp("SIP/1003-0000000e", " "default"") in new stack
> {noformat}
> Clearly glovalvar was not properly de-quoted. (I would assume it was not put into $[ ] like localvar).



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



More information about the asterisk-bugs mailing list