[asterisk-users] Re: AEL question

Steve Murphy murf at digium.com
Fri Oct 13 14:43:33 MST 2006


On Fri, 2006-10-13 at 10:20 -0700,
asterisk-users-request at lists.digium.com wrote:
>                 Well, I made the changes you suggested, reloaded AEL
>         and got the same 
>         result:
>         
>              -- Executing macro("SIP/162-c7ac", "newPlaceCallPSTN")
>         Oct 13 11:09:07 WARNING[15648]: ast_expr2.fl:183 ast_yyerror: 
>         ast_yyerror(): syntax error: syntax error, unexpected TOK_GT,
>         expecting 
>         TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input:
  > {            Set(TIMEOUT(absolute)=7200);            NoOp(Analog
Out 
        List: ZAP/4&ZAP/3&ZAP/2&ZAP/1); 
        ChanIsAvail(ZAP/4&ZAP/3&ZAP/2&ZAP/1);           NoOp(Available
        Out List: 
        );                             Set(theChannel=);      NoOp(Now
        Calling 
        95145121677 on ....);
        Dial(/5145121677);      }
        
Something's seriously wrong, because it's ast_expr2 that's complaining!
That code should only be looking inside $[..] expressions, and somehow,
it's looking at more than that! Your code is "leaking" the expr stuff
(stuff in $[...] into 
the AEL code. Check for $['s that aren't properly closed off.

Beware AEL version 1 (native in 1.2). It's the reason I wrote AEL2
(native in 1.4). If you 
get tired of trying to debug it, I suggest either moving to 1.4, or
trying to install the
AEL2-1.2 branch from team/murf, and using AEL2 with 1.2. 

-- 
Steve Murphy
Software Developer
Digium
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3227 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20061013/3b7c0a5c/smime.bin


More information about the asterisk-users mailing list