Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] gotoif syntax error


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
jparker at digium.com
Guest





PostPosted: Tue Apr 15, 2008 10:07 am    Post subject: [asterisk-users] gotoif syntax error Reply with quote

????? ??????? wrote:
Quote:
Asterisk is reporting the following error:

[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)


Because OUT is correct. IN is missing a =, as in = Always
Back to top
moshe at ipconnect.co.il
Guest





PostPosted: Tue Apr 15, 2008 10:11 am    Post subject: [asterisk-users] gotoif syntax error Reply with quote

I may of removed it for testing just prior to send the email - i get the
same error when its there:
exten => IN,1,Gotoif($[$["${DB(AMPUSER/${ARG1}/recording)}" : "in=([^|]+)"]
= Always]?r,1)

On Tue, Apr 15, 2008 at 6:07 PM, Jason Parker <jparker at digium.com> wrote:

Quote:
????? ??????? wrote:
Quote:
Asterisk is reporting the following error:

[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)


Because OUT is correct. IN is missing a =, as in = Always

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


--
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/c1ab6b01/attachment.htm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services