[asterisk-users] Quoting error with gotoiftime

Danny Nicholas danny at debsinc.com
Fri Jan 25 10:20:16 CST 2013


Error doesn't occur in 11.2.1

   -- Executing [1260 at default:1] Answer("SIP/sipuser-00000001", "") in new
stack

    -- Executing [1260 at default:2] Goto("SIP/sipuser-00000001",
"scottsdale#queues-account,s,1") in new stack

    -- Goto (scottsdale#queues-account,s,1)

    -- Executing [s at scottsdale#queues-account:1]
GotoIfTime("SIP/sipuser-00000001", "8:00-16:55,mon-fri,*,*?queue") in new
stack

    -- Goto (scottsdale#queues-account,s,3)

    -- Executing [s at scottsdale#queues-account:3]
ExecIf("SIP/sipuser-00000001", "1?Queue(azenglish):Queue(azspanish)") in new
stack

  == Spawn extension (scottsdale#queues-account, s, 3) exited non-zero on
'SIP/sipuser-00000001'

 

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 10: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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130125/3b48e785/attachment.htm>


More information about the asterisk-users mailing list