Here is a section of my dialplan (macro) exten => s,200,Wait(1) exten => s,201,read(holdopt|screen-onhold|1) exten => s,202,GotoIf($[${holdopt} = 1 ]?4) exten => s,203,GoTo(200) 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
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...> Here is a section of my dialplan (macro) > > exten => s,200,Wait(1) > exten => s,201,read(holdopt|screen-onhold|1) > exten => s,202,GotoIf($[${holdopt} = 1 ]?4) > exten => s,203,GoTo(200) > > > 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 -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
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."