Hi, I got this message on my Asterisk messages file and after it Asterisk went down... 2006-02-18 08:13:55 WARNING[3214] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected TOK_PLUS, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input: + 1 ^ 2006-02-18 08:13:55 WARNING[3214] ast_expr2.fl: If you have questions, please refer to doc/README.variables in the asterisk source. Any ideas? a Thank you Dov -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060220/9caebc6e/attachment.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Dov Bigio wrote: <blockquote cite="mid000c01c6363e$a4deb990$0200050a@fabrica.locaweb.com.br" type="cite"> <meta http-equiv="Content-Type" content="text/html; "> <meta content="MSHTML 6.00.2800.1528" name="GENERATOR"> <style></style> <div><font face="Arial" size="2">Hi,</font></div> <div> </div> <div><font face="Arial" size="2">I got this message on my Asterisk messages file and after it Asterisk went down...</font></div> <div><font face="Arial" size="2"><br> 2006-02-18 08:13:55 WARNING[3214] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected TOK_PLUS, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input:<br> </font></div> </blockquote> <br> <br> What part of your dial plan is generating the error? Can you post it?<br> <br> Doug<br> </body> </html>
Dov Bigio wrote: Hi, I got this message on my Asterisk messages file and after it Asterisk went down... 2006-02-18 08:13:55 WARNING[3214] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected TOK_PLUS, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input: What part of your dial plan is generating the error? Can you post it? Doug This sounds a lot like the error Doug was getting when he tried to increment a variable before it actually was defined. Please post the part of the dialplan that causes this error and we will probably be able to figure it out. -MC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060220/74bddadf/attachment.htm
I usually see this when doing operations on variables that are blank. In your case, the input is ' + 1'. Clearly there was something to the left of the + but it's blank. If you're adding one to something, make sure there is a number on the left side of the plus sign. Probably by initializing the variable to zero before you first use it. </edg> --On Monday, February 20, 2006 1:56 PM -0300 Dov Bigio <dovb@terra.com.br> wrote:> > Hi, > > I got this message on my Asterisk messages file and after it Asterisk > went down... > > 2006-02-18 08:13:55 WARNING[3214] ast_expr2.fl: ast_yyerror(): syntax > error: syntax error, unexpected TOK_PLUS, expecting TOK_MINUS or > TOK_COMPL or TOK_LP or TOKEN; Input: > + 1 > ^ > 2006-02-18 08:13:55 WARNING[3214] ast_expr2.fl: If you have questions, > please refer to doc/README.variables in the asterisk source. > > Any ideas? > a > Thank you > Dov