[asterisk-users] AEL Variable Warning Messages
Brent Davidson
brent at texascountrytitle.com
Tue Dec 23 13:42:47 CST 2008
Philipp Kempgen wrote:
> Brent Davidson schrieb:
>
>
>> macro outside-dial ( num ) {
>> if (${DB_EXISTS(Office/${CALLERID(num)})}) {
>> TRUNK="Zap/r2";
>> } else {
>> TRUNK="Zap/r1";
>> }
>> Dial(${TRUNK}/${num},,Ttok);
>> }
>>
>
>
>> [Dec 23 12:16:22] WARNING[2994]: pbx_ael.c:2500 check_pval_item:
>> Warning: file /etc/asterisk/extensions.ael, line 93-93: expression
>> "Zap/r2" has operators, but no variables. Interesting...
>> [Dec 23 12:16:22] WARNING[2994]: pbx_ael.c:2500 check_pval_item:
>> Warning: file /etc/asterisk/extensions.ael, line 95-95: expression
>> "Zap/r1" has operators, but no variables. Interesting...
>>
>
> I'd suggest
> Set(TRUNK=Zap/r2);
> resp.
> Set(TRUNK=Zap/r1);
>
>
> Philipp Kempgen
>
>
According to the AEL Documentation I should be able to set variables
without using the "Set" command. They even give the following example:
context foo {
555 => {
x=5;
y=blah;
divexample=10/2
NoOp(x is ${x} and y is ${y} !);
};
};
I wonder if maybe AEL is ignoring the double quotes and treating the
Zap/r2 as if it were division??? Should I file a bug report on this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081223/37fc603a/attachment.htm
More information about the asterisk-users
mailing list