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

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Fri Jan 18 13:43:20 CST 2013


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

Richard Mudgett updated ASTERISK-16790:
---------------------------------------

    Description: 
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).

  was:
in the asterisk.conf I have compat setting for
app_set = 1.6

Test AEL:


globals {
        globalvar = "default";
};
...

0004=>{
        localvar = "default";
        NoOp(${localvar});
        NoOp(${globalvar});
};


Dialing into 0004 gives:

    -- 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

Clearly glovalvar was not properly de-quoted. (I would assume it was not put into $[ ] like localvar).

    
> 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 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