[Asterisk-Users] gotoif
Shaun
mailinglists at unix-scripts.com
Fri Apr 7 01:35:52 MST 2006
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
More information about the asterisk-users
mailing list