it's simple really it loops telling you the caller is on hold until you
press 1 and then it sends you off to another area. The problem right now
is that if the read() times out i get these warnings...
Apr 7 01:32:13 WARNING[24248]: ast_expr2.fl:183 ast_yyerror:
ast_yyerror(): syntax error: syntax error, unexpected TOK_EQ, expecting
TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input:
= 1
^
Apr 7 01:32:13 WARNING[24248]: ast_expr2.fl:187 ast_yyerror: If you have
questions, please refer to doc/README.variables in the asterisk source.
The dial plan works and all, it's just i want those warnings to go away!
--
~Shaun
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
I'm just about positive i tried that, i'll give it another go.
~Shaun
"Doug Lytle" <support@drdos.info> wrote in message
news:4436349C.7020807@drdos.info...
Quote:
Shaun wrote:
>
>
> Apr 7 01:32:13 WARNING[24248]: ast_expr2.fl:183 ast_yyerror:
> ast_yyerror(): syntax error: syntax error, unexpected TOK_EQ, expecting
> TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input:
>
>
>
> The dial plan works and all, it's just i want those warnings to go away!
>
>
>
This has been covered a few time in the last 2 months. You need to
initialize the variable:
Set(holdopt=0)
Before doing any testing with it.
Doug
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety."
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
I had the same problem on a script, I suspect this is the first time you're using the "holdopt" variable? Try setting it to zero before the read.
It looks like if holdopt is "NULL" (the user doesn't input anything and you haven't got something in the variable to start with) asterisk interprets that line as:
s,202,GotoIf($[ = 1 ]?4)
and that generates the error.
--JW
----- Original Message ----
From: Shaun <mailinglists@unix-scripts.com>
To: asterisk-users@lists.digium.com
Sent: Friday, April 7, 2006 1:38:00 AM
Subject: [Asterisk-Users] Re: gotoif
Also forgot to say that the error is triggered by the gotoif (reason the
subject is labeled that) and not read...
--
~Shaun
"Shaun" <mailinglists@unix-scripts.com> wrote in message
news:e15897$p2t$1@sea.gmane.org...
it's simple really it loops telling you the caller is on hold until you
press 1 and then it sends you off to another area. The problem right now
is that if the read() times out i get these warnings...
Apr 7 01:32:13 WARNING[24248]: ast_expr2.fl:183 ast_yyerror:
ast_yyerror(): syntax error: syntax error, unexpected TOK_EQ, expecting
TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input:
= 1
^
Apr 7 01:32:13 WARNING[24248]: ast_expr2.fl:187 ast_yyerror: If you have
questions, please refer to doc/README.variables in the asterisk source.
The dial plan works and all, it's just i want those warnings to go away!
--
~Shaun
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Posted: Sat Apr 08, 2006 8:49 am Post subject: [Asterisk-Users] Re: gotoif
What doug said didnt work for me, anybody else having this problem the below
appears to have resolved it.
exten => s,n,Gotoif($["${menuopt}" = ""]?1)
--
~Shaun
"Doug Lytle" <support@drdos.info> wrote in message
news:4436349C.7020807@drdos.info...
Quote:
Shaun wrote:
>
>
> Apr 7 01:32:13 WARNING[24248]: ast_expr2.fl:183 ast_yyerror:
> ast_yyerror(): syntax error: syntax error, unexpected TOK_EQ, expecting
> TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input:
>
>
>
> The dial plan works and all, it's just i want those warnings to go away!
>
>
>
This has been covered a few time in the last 2 months. You need to
initialize the variable:
Set(holdopt=0)
Before doing any testing with it.
Doug
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety."
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum