[asterisk-users] Quoting error with gotoiftime

Carlos Alvarez carlos at televolve.com
Fri Jan 25 10:09:22 CST 2013


I'm getting the following error, and none of us can figure out why:

 [Jan 25 09:07:19] WARNING[19258]: ast_expr2.fl:468 ast_yyerror:
ast_yyerror():  syntax error: syntax error, unexpected '<token>', expecting
$end; Input:
"""" = ""
  ^


Here is the code that generates it:

[scottsdale#queues-account]
exten => s,1,GotoIfTime(8:00-16:55,mon-fri,*,*?queue)
exten => s,n,Goto(scottsdale#queues-closed,s,1)
exten => s,n(queue),ExecIf($["${prefix}" =
""]?Queue(azenglish):Queue(azspanish))
exten => s,n(callback),Playback(scottsdale-q/${prefix}callbackmessage)
exten => s,n,Voicemail(9999 at scottsdale,s)
exten => s,n,Hangup


Here is the rest of the call progress surrounding it, which seems to be
working anyway:

    -- Executing [2 at scottsdale#queues-aax:1]
Goto("SIP/televolve-1-00001c7d", "scottsdale#queues-account,s,1") in new
stack
    -- Goto (scottsdale#queues-account,s,1)
    -- Executing [s at scottsdale#queues-account:1]
GotoIfTime("SIP/televolve-1-00001c7d", "8:00-16:55,mon-fri,*,*?queue") in
new stack
    -- Goto (scottsdale#queues-account,s,3)
[Jan 25 09:07:19] WARNING[19258]: ast_expr2.fl:468 ast_yyerror:
ast_yyerror():  syntax error: syntax error, unexpected '<token>', expecting
$end; Input:
"""" = ""
  ^
[Jan 25 09:07:19] WARNING[19258]: ast_expr2.fl:472 ast_yyerror: If you have
questions, please refer to
https://wiki.asterisk.org/wiki/display/AST/Channel+Variables
    -- Executing [s at scottsdale#queues-account:3]
ExecIf("SIP/televolve-1-00001c7d", """?Queue(azenglish):Queue(azspanish)")
in new stack


-- 
Carlos Alvarez
TelEvolve
602-889-3003
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130125/352b717d/attachment.htm>


More information about the asterisk-users mailing list