[asterisk-users] Quoting error with gotoiftime

Eric Wieling EWieling at nyigc.com
Fri Jan 25 10:20:00 CST 2013


Looks to me like ${prefix} contains nothing but two quotes.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Carlos Alvarez
Sent: Friday, January 25, 2013 11:09 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Quoting error with gotoiftime

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




More information about the asterisk-users mailing list