[Home]

Summary:ASTERISK-16790: AEL inconsistency with global vs. local variable de-quoting
Reporter:Dmitry Andrianov (dimas)Labels:
Date Opened:2010-10-11 17:58:01Date Closed:2019-04-11 17:01:18
Priority:MinorRegression?No
Status:Closed/CompleteComponents:PBX/pbx_ael
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
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@default:1] MSet("SIP/1003-0000000e", "localvar="default"") in new stack
   -- Executing [0004@default:2] NoOp("SIP/1003-0000000e", "default") in new stack
   -- Executing [0004@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).
Comments:By: Matt Jordan (mjordan) 2013-01-15 11:11:33.105-0600

Please note that {{pbx_ael}} is an extended support module, and developer effort for it typically comes from the Asterisk community. Response times may reflect that.

By: Sean Bright (seanbright) 2019-04-11 17:01:18.233-0500

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}