What version does the error occur on?  I suspect more recent versions of 
Asterisk removes extraneous quotes.

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Danny Nicholas
Sent: Friday, January 25, 2013 11:20 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] Quoting error with gotoiftime

Error doesn't occur in 11.2.1

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

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

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

    -- Executing [s@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@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: [email protected] 
[mailto:[email protected]] 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@scottsdale,s)

exten => s,n,Hangup

 

 

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

 

    -- Executing [2@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@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@scottsdale#queues-account:3] 
ExecIf("SIP/televolve-1-00001c7d", """?Queue(azenglish):Queue(azspanish)") in 
new stack

 

 

-- 

Carlos Alvarez

TelEvolve

602-889-3003

 


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to