[asterisk-users] gotoif syntax error

מוישי ברעוודה moshe at ipconnect.co.il
Tue Apr 15 15:17:51 CDT 2008


actually I screw up a lot as i changed something for testing. here is the
correct error/dialplan:

[Apr 15 16:58:32] WARNING[14759] ast_expr2.fl: ast_yyerror(): syntax error:
syntax error, unexpected '=', expecting $end; Input:
 = Always
^

here is the dialplan:
exten => OUT,1,Gotoif($[$["${DB(AMPUSER/${ARG1}/recording)}" :
"out=([^|]+)"] = Always]?r,1)
exten => GROUP,1,Gotoif($[$["${DB(AMPUSER/${ARG1}/recording)}" :
"out=([^|]+)"] = Always]?r,1)
exten => IN,1,Gotoif($[$["${DB(AMPUSER/${ARG1}/recording)}" : "in=([^|]+)"]
= Always]?r,1)

The error is for the last line (IN,1). Funny thing is that asterisk doesnt
report any error for the first line (OUT,1)

-- 
Moshe Brevda, CTO
ipconnect, ltd.
26 Strauss St., Jerusalem, Israel
W. 1.800.800.456 (+9722.569.5295)
M. +97254.666.1367
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080415/0e8eab67/attachment.htm 


More information about the asterisk-users mailing list