search for: ast_yyerror

Displaying 20 results from an estimated 42 matches for "ast_yyerror".

2007 Nov 26
3
Correct syntax for IF()?
...TIME}.wav)}) [Nov 26 21:52:34] WARNING[5074]: func_logic.c:107 acf_if: Syntax IF(<expr>?[<true>][:<false>]) ============== TEST #2 exten => h,n,Set(WAV_FILE=${IF($[STAT(e,/tmp/${CALLTIME}.wav)]?${CALLTIME}.wav:"")}) [Nov 26 22:02:23] WARNING[5101]: ast_expr2.fl:398 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '(', expecting $end; Input: STAT(e|/tmp/.wav) ^ [Nov 26 22:02:23] WARNING[5101]: ast_expr2.fl:402 ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source. ============== TEST #3 exten =&...
2016 Aug 08
2
Trouble applying regex to dialplan variable that contains double-quotes
...> _X.,n,Set(T1="Example name" <sip:example at example.com>) If I just apply the regex operator (:) on T1 using regexp RX, like this: exten => _X.,n,Set(FROM_SIPURI=$[${T1}:${RX}]) ...I get this syntax error: [2016-08-08 15:04:02] WARNING[1653][C-00000000]: ast_expr2.fl:470 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected ':', expecting '-' or '!' or '(' or '<token>'; Input: "Example name" <sip:example at example.com>:".*<(.+)>" ^ (caret points...
2004 Aug 18
1
Testing null values: ast_yyerror(): syntax error
...new stack -- Executing NoOp("Zap/2-1", "") in new stack -- Executing DBget("Zap/2-1", "temp=idiot/") in new stack -- DBget: varname=temp, family=idiot, key= -- DBget: Value not found in database. Aug 18 10:34:06 WARNING[458767]: ast_expr.y:474 ast_yyerror: ast_yyerror(): syntax error: syntax error; Input: = "" ^ -- Executing GotoIf("Zap/2-1", "0?s|1000:s|105") in new stack -- Goto (bell2,s,105) Aug 18 10:34:06 WARNING[458767]: ast_expr.y:474 ast_yyerror: ast_yyerror(): syntax error: syntax error; Input: = 8...
2005 May 12
1
ast_yyerror - 'space' in Caller-ID - string comparison
...D data looks like --> "638936" <638936> therefore the checking of both "Name" and <number>. -- Executing NoOp("SIP/292951-b11f", "FWD SIP: "Mark Elkins" <638936>") in new stack May 12 14:36:59 WARNING[28824]: ast_expr.y:486 ast_yyerror: ast_yyerror(): syntax error: parse error; Input: Mark Elkins = 638936 ^^^^ ^ -- Executing GotoIf("SIP/292951-b11f", "Mark?3:4") in new stack -- Goto (sipdef,s,4) -- Executing SetCIDNum("SIP/292951-b11f", "87638936") in new stack -...
2009 Jan 08
4
AEL question: testing channel variables
Hi! I use the following condition: if (${FOOBAR}=YES) { ... } The problem is, that if FOOBAR is not defined at all Asterisk generates a warning: WARNING[11982]: ast_expr2.fl:407 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input: =YES Of course I could use the following code, but this bloats up the code: if (${EXISTS(${FOOBAR})}) { if (${FOOBAR}=YES) { ... } } Is there another syntax to have nice looking code but av...
2006 Apr 07
2
gotoif
...} = 1 ]?4) exten => s,203,GoTo(200) it's simple really it loops telling you the caller is on hold until you press 1 and then it sends you off to another area. The problem right now is that if the read() times out i get these warnings... Apr 7 01:32:13 WARNING[24248]: ast_expr2.fl:183 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected TOK_EQ, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input: = 1 ^ Apr 7 01:32:13 WARNING[24248]: ast_expr2.fl:187 ast_yyerror: If you have questions, please refer to doc/README.variables in the asterisk source. The dial plan wor...
2012 May 02
3
parsing issue
I get an error when I execute this code exten => rejected,n,Hangup($[-1*${Z}]) May 2 13:42:09] WARNING[23128]: ast_expr2.fl:468 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting '-' or '!' or '(' or '<token>'; Input: -1* The variable "Z" has a negative number, which is the code that I need to use in the hangup. Any idea how can I do this? There is no AB...
2007 Aug 10
2
Dialplan loop
...ckground(our-business-hours-are) ... exten => s,n,Set(loop = $[${loop} + 1]) exten => s,n,GotoIf(${loop} = 1 ?night) exten => s,n,Voicemail(1016) exten => s,n(day),Background(silence/1) The above loop increment doesn't work. The error message is: WARNING[14490]: ast_expr2.fl:398 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '+', expecting $end; Input: + 1 ^ WARNING[14490]: ast_expr2.fl:402 ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source. OK, and doc/channelvariables.txt shows: exten => 1,2,Set(koko...
2004 Sep 02
1
Problem with HasNewVoicemail()
...-- Executing HasNewVoicemail("SIP/201-2f1e", "201") in new stack Sep 2 12:41:09 NOTICE[819221]: app_hasnewvoicemail.c:104 hasvoicemail_exec: Voice mailbox 201 at /var/spool/asterisk/voicemail/default/201/(null) does not exist Sep 2 12:41:09 WARNING[819221]: ast_expr.y:474 ast_yyerror: ast_yyerror(): syntax error: parse error; Input: 0 + ^ ^ And if I add the optional variable name to put the new count into: exten => s,1,HasNewVoicemail(201,NEWMSGCOUNT) The error message is an even more puzzling: -- Executing HasNewVoicemail("SIP/201-3277", "201@defaul...
2007 May 14
1
ast_yyerror - Help
Hey all, We're starting to see "all circuits are busy" and a few dropped calls. When these happen, in the messages log, I see the following error. May 14 14:42:13 WARNING[5604] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input: 0?7: What causes this?
2009 Jan 18
0
ast_yyerror()
Hi All, I got this error: [Jan 18 09:56:58] WARNING[9617]: ast_expr2.fl:407 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting '-' or '!' or '(' or '<token>'; Input: 1 > ^ exten => s,3,GotoIf($[${GROUP_COUNT(${ARG1})} > ${LINELIMIT}]?101) exten => s,3,GotoIf($[${GROUP_COUNT(${TRUNKGROUP})} >...
2006 Oct 13
2
AEL Question
...VAILCHAN|-|1); NoOp(Now Calling ${MACRO_EXTEN} on ${theChannel}....); // -- Dial(${theChannel}/${MACRO_EXTEN:${TRUNKMSD}}); }; }; ... I get: -- Executing macro("SIP/162-4c8b", "newPlaceCallPSTN") Oct 13 08:57:22 WARNING[15320]: ast_expr2.fl:183 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected TOK_GT, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input: > { TIMEOUT(absolute)=7200; NoOp(Analog Out List: ZAP/4&ZAP/3&ZAP/2&ZAP/1); ChanIsAvail(ZAP/4&ZAP/3&ZAP/2&ZAP/1);...
2019 Oct 01
2
Increasing variables - Changes v13 vs v16
Hi list, on asterisk 13 I use same => n,Set(__myCpt=$[${myCpt} + 1]) which is working well. On an Asterisk 16 I get, for this same command [2019-10-01 16:15:01] WARNING[28197][C-00000008]: ast_expr2.fl:470 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '+', expecting $end; Input: + 1 ^ What changes in 16 version creates this behavior and how to get it work ? Thanks for any hint -- Daniel
2010 Sep 09
1
syntax error, unexpected '<token>'
...en => pbx,n,GoToIf($["${STATUS}"="congestion"]?backup:nocongestion) CLI : [Sep 9 12:27:07] -- Executing [pbx at cust:15] NoOp("SIP/test13-0000002a", "status = "congestion"") in new stack *[Sep 9 12:27:07] WARNING[5741]: ast_expr2.fl:445 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '<token>', expecting $end; Input: ""congestion""="congestion" ^* [Sep 9 12:27:07] WARNING[5741]: ast_expr2.fl:449 ast_yyerror: If you have questions, please refer to doc/tex/channelvariables.t...
2009 Mar 27
1
Strange warning message
Can anyone give me any idea on where to start looking for this ? 1.4 svn (ish) It has appeared twice in the last hour on a system that gets numerous inbound calls to the same number TIA Julian [Mar 27 17:21:07] WARNING[3239]: ast_expr2.fl:407 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input: = 2 ^ [Mar 27 17:21:07] WARNING[3239]: ast_expr2.fl:411 ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source. __________________________________________...
2010 Nov 03
1
Gotoif changed in 1.8?
...layback(${invacct}) exten => s,n,Goto(tb-account-balance,s,runagi) exten => s,n(ok),Set(BALCOUNT=0) -- Executing [s at tb-account-balance:7] GotoIf("SIP/134-00000000", "0?tb-account-balance,s,reset_bc") in new stack [Nov 3 14:23:02] WARNING[20937]: ast_expr2.fl:468 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '<token>', expecting $end; Input: ""NONE"" = "OK" ^ [Nov 3 14:23:02] WARNING[20937]: ast_expr2.fl:472 ast_yyerror: If you have questions, please refer to doc/tex/channelvariables.tex. *...
2006 Jun 26
0
AEL scripting, CUT use and string concatenation
...ot;, "x=1") in new stack -- Executing GotoIf("SIP/1234-100-b263", "1?9:21") in new stack -- Goto (macro-pbx-ring-group-ael,s,9) -- Executing Set("SIP/1234-100-b263", "x=2") in new stack Jun 26 17:17:24 WARNING[31282]: ast_expr2.fl:176 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input: ^ Jun 26 17:17:24 WARNING[31282]: ast_expr2.fl:180 ast_yyerror: If you have questions, please refer to doc/README.variables in the asterisk source. -- Executing Set(&...
2005 Jun 29
5
Problems with OR Logic in the GotoIf Statement
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3034 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050629/596126bc/smime.bin
2009 Jul 31
1
asterisk 1.6 call forwarding
...sure what should it look like? exten => 50,n,Dial(SIP/${CFIM},30) exten => 50,n,Dial(SIP/${EXTEN},30 ... First part properly sets and deletes string in database Second part works as the forwarding is set, however if it is not set then CFIM is empty and I got: WARNING[9752]: ast_expr2.fl:434 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input: ='' Can someone suggest the solution? Many thanks -- pepesz
2004 Apr 12
0
strange error at extension.conf
...36725-7dc3", "var=0") in new stack -- Executing MeetMeCount("SIP/3056236725-7dc3", "1001|var") in new stack == Parsing '/etc/asterisk/meetme.conf': == Parsing '/etc/asterisk/meetme.conf': Found Apr 13 07:09:59 WARNING[21520]: ast_expr.y:346 ast_yyerror: ast_yyerror(): syntax error: parse error Apr 13 07:09:59 DEBUG[21520]: pbx.c:1088 pbx_substitute_variables_helper: Expression is '0' -- Executing GotoIf("SIP/3056236725-7dc3", "0?7:6") in new stack -- Goto (internal,16058475739,6) -- Executing MeetMe("S...