[Asterisk-Users] error messages on /var/log/asterisk/messages
Hi, I am using 1.2.3, and sometimes I can see the following message: Mar 2 08:42:42 WARNING[25937] 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 ^Mar 2 08:42:42 WARNING[25937] ast_expr2.fl: If you have questions, please refer to doc/README.variables in the asterisk source. Any ideas? Thank you Dov ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] error messages on /var/log/asterisk/messages
On 09:44, Thu 02 Mar 06, Dov Bigio wrote: > Hi, > > I am using 1.2.3, and sometimes I can see the following message: > > Mar 2 08:42:42 WARNING[25937] 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 > ^ > Mar 2 08:42:42 WARNING[25937] ast_expr2.fl: If you have questions, please > refer to doc/README.variables in the asterisk source. Hi, I have those too sometimes, but because it's not giving any indication of what went wrong they are pretty useless. I know it means SOMETHING has gone wrong, and there's a bug in my dialplan, but since everything works normally, you get the point. Would be great if it could be a bit more complete, like printing the whole line that went wrong. -- Michiel van Baak http://michiel.vanbaak.info [EMAIL PROTECTED] GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D "Why is it drug addicts and computer afficionados are both called users?" ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] error messages on /var/log/asterisk/messages
Michiel van Baak wrote: On 09:44, Thu 02 Mar 06, Dov Bigio wrote Mar 2 08:42:42 WARNING[25937] 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 ^ Mar 2 08:42:42 WARNING[25937] ast_expr2.fl: If you have questions, please refer to doc/README.variables in the asterisk source. From what has been discussed in the last month, it would indicates that it's a variable that hasn't been defined before doing a math function. (i.e. not setting a=0 before doing an a=a+1) Doug ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] error messages on /var/log/asterisk/messages
On 08:32, Thu 02 Mar 06, Doug Lytle wrote: > From what has been discussed in the last month, it would indicates that > it's a variable that hasn't been defined before doing a math function. > (i.e. not setting a=0 before doing an a=a+1) Hhmm, Only thing in my setup that looks like it can go wrong is this: [macro-safedial] exten => s,1,Dial(${ARG1},${ARG2},${ARG3},${ARG4}) exten => s,2,Goto(s-${DIALSTATUS},1) exten => s-CANCEL,1,Hangup() exten => s-NOANSWER,1,GotoIf($[${DIALEDTIME} = 0]?3) exten => s-NOANSWER,2,Hangup() exten => s-NOANSWER,3,Verbose(1,Need failover for "${ARG1}") Looks like the Dial statement is not setting the $DIALEDTIME in some cases. Anyone ? -- Michiel van Baak http://michiel.vanbaak.info [EMAIL PROTECTED] GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D "Why is it drug addicts and computer afficionados are both called users?" ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] error messages on /var/log/asterisk/messages
At 06:00 AM 03/02/2006, you wrote: exten => s-NOANSWER,1,GotoIf($[${DIALEDTIME} = 0]?3) Looks like the Dial statement is not setting the $DIALEDTIME in some cases. This is the general solution to that. exten => s-NOANSWER,1,GotoIf($["${DIALEDTIME}" = "0"]?3) Ira -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.375 / Virus Database: 268.1.1/272 - Release Date: 03/01/2006 ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users