What is your first line in the dialplan, and what is the output of your console?

This looks like ${TRIES} is empty, which would cause the exact error
you are having.

Leif.

On Tue, Apr 14, 2009 at 11:58 AM, John Lange <[email protected]> wrote:
> In Asterisk 1.4.23.1, expressions don't seem to be working.
>
> According to the docs (doc/channelvariables.txt),  you should be able to
> do this:
>
> exten => 1,2,Set(koko=$[2 * ${lala}])
>
>
> In my system I have this:
>
> exten => i,2,Set(TRIES=$[1 + ${TRIES}])
>
> However, it generates this error:
>
>  WARNING[6389]: ast_expr2.fl:407 ast_yyerror: ast_yyerror():  syntax
> error: syntax error, unexpected $end, expecting '-' or '!' or '(' or
> '<token>'; Input:
> 1 +
>    ^
>
> I know this worked in the past so is there something I'm not seeing or
> are expressions not working in Asterisk?
>
> Regards,
> --
> John Lange
> http://www.johnlange.ca
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Leif Madsen.
http://www.leifmadsen.com
http://www.oreilly.com/catalog/asterisk

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to