similar to: Testing null values: ast_yyerror(): syntax error

Displaying 20 results from an estimated 1000 matches similar to: "Testing null values: ast_yyerror(): syntax error"

2005 May 12
1
ast_yyerror - 'space' in Caller-ID - string comparison
I've some code to manipulate incoming Caller-ID - so its suitable for replying to... [sipdef] exten => s,1,NoOp(FWD SIP: "${CALLERIDNAME}" <${CALLERIDNUM}>) ; Alter incoming calles from pulver - add a '87' exten => s,2,Gotoif($[${CALLERIDNAME} = ${CALLERIDNUM}]?3:4) exten => s,3,SetCIDName(87${CALLERIDNUM}) exten => s,4,SetCIDNum(87${CALLERIDNUM}) exten
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})} >
2005 Aug 08
0
problem with callerid ( SetCIDName )
I don't succed in getting callerId on incoming calls on a zap trunk. I am using a zaphfc card When a call is received, one line in asterisk pbx says -- Executing SetCIDName("Zap/32-1", "") in new stack second parameters should be the caller ID, but it is not set The callerid is not hidden at source, so I think that is some kind of setting in zapata.conf I am using
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?
2004 Sep 02
1
Problem with HasNewVoicemail()
Hi all, Maybe I'm being thick here, but I've had a look through the mailing list and the Wiki, and I can't seem to see details of anybody else with this problem.... With the following line: exten => s,1,HasNewVoicemail(201) I am getting the following error: -- Executing HasNewVoicemail("SIP/201-2f1e", "201") in new stack Sep 2 12:41:09
2004 Apr 12
0
strange error at extension.conf
hi, i write this looking for free conference room, i checl code and don?t see any error but die at priority 7 if room 1001 have users in exten => _1NXXNXXXXXX,1,RouteCall(${EXTEN}) exten => _1NXXNXXXXXX,2,GotoIf($[${DESTINATION1:0:3} = CONF]?3:13) exten => _1NXXNXXXXXX,3,Setvar,var=0 exten => _1NXXNXXXXXX,4,MeetMeCount(1001|var) exten => _1NXXNXXXXXX,5,GotoIf($[${var} =0]?7:6)
2005 Sep 27
1
Extensions go straight to voicemail
Hello, I have setup a test server with asterisk/AMP and have several 7960's connected to it. The asterisk server has a public ip and all the 7960's are behind nat'd routers. When I try to call from extension to extension I get directed straight to voicemail. I do not have any cards installed and instead direct everything to an Ondo server. I have been told it's not an AMP
2003 Nov 10
1
Periodic crash - avoid this syntax...
I have a machine that crashes every so often. I believe the following macro is responsible (gotoif,$[${ARG3}] in particular). The macro works as expected: if ARG3 is defined - hop over assignment. But my hunch is that it gradually chews up memory. ; This macro is puts voicemail in an alternate mailbox (if ARG3 defined - otherwise Mailbox matches extension). [macro-stdexten] exten =>
2004 Jan 03
0
expression parsing
Hi. I've noticed a problem with the expression parsing in Asterisk. If the variable is not defined, I will get a parse error. Yeah, there are ways around it, but I would think that it should return false if 0, null, or undefined. I would change it, but I have no idea about bison and I only have very basic C skills. There was a bug opened on this, and there was a valid work-around posted,
2007 Nov 26
3
Correct syntax for IF()?
Hello I've tried a bunch of things, but still get errors/warnings when using the IF() function: ============== TEST #1 exten => h,n,Set(WAV_FILE=${IF($[ ${STAT(e,/tmp/${CALLTIME}.wav)} ]?${CALLTIME}.wav)}) [Nov 26 21:52:34] WARNING[5074]: func_logic.c:107 acf_if: Syntax IF(<expr>?[<true>][:<false>]) ============== TEST #2 exten =>
2004 Apr 27
1
parsing to compare
Admittedly this is probably pretty stupid of me, but there are just some things I can't understand by reading documentation. Any suggestions or recommendations about how to handle my problem are greatly appreciated. I'm trying to achieve the same functionality as my Nortel PBX, without rewriting much 'C' code. In my dialplan I'd like to compare two variables as a means of
2016 Aug 08
2
Trouble applying regex to dialplan variable that contains double-quotes
I am writing a dialplan context under asterisk 11.21.0 to handle SIP message routing between registered SIP peers using chan_sip. I am having trouble with double-quotes when the source peer uses a display name, which appears in quotes before the SIP URI. I want to extract the SIP URI from MESSAGE(from) in order to (conditionally) route a failure message back to the source peer. My test dialplan
2006 Jun 26
0
AEL scripting, CUT use and string concatenation
Hi to all, i'm wondering to realize a dynamic macro that can take the number of extensions to RING,the ring type and all the parameter in a dynamic way. I have done this code to test it: macro pbx-ring-group-ael(pbx_id,num_int,ring_type,timeout,ext_string) { //; pbx_id = Id of PBX in the DB //; num_int = Quantity of extensions to ring //; ring_type = Kind of RING (C=contemporaneous
2006 Apr 07
2
gotoif
Here is a section of my dialplan (macro) exten => s,200,Wait(1) exten => s,201,read(holdopt|screen-onhold|1) exten => s,202,GotoIf($[${holdopt} = 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...
2010 Sep 09
1
syntax error, unexpected '<token>'
Hello list, getting warning : *syntax error, unexpected '<token>'* dialplan : exten => pbx,n,Macro(CheckNetworkProblems,${custID}) exten => pbx,n,NoOp(status = ${STATUS}) exten => pbx,n,GoToIf($["${STATUS}"="congestion"]?backup:nocongestion) CLI : [Sep 9 12:27:07] -- Executing [pbx at cust:15] NoOp("SIP/test13-0000002a",
2007 Aug 10
2
Dialplan loop
Folks, I'm trying to implement a simple loop in a dialplan. The object is to set a counter, run through some IVR options, increment the counter, return to the start, then finally fall through to an operator or voicemail. Am using 1.4.10 and have reviewed doc/ exten => s,1,Set(TIMEOUT(digit)=5) exten => s,n,Set(TIMEOUT(response)=20) exten => s,n,Set(loop = 0) exten =>
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]:
2010 Nov 03
1
Gotoif changed in 1.8?
Hi Gang, I'm testing 1.8.0 on one of my machines and this snippet "chokes" on line 7 (works fine with 1.4.30) [tb-account-balance] exten => s,1,Set(BALCOUNT=0) exten => s,n,NoOp(Verbose(acct ${digitacc} pwd ${digitpwd} )) exten => s,n(runagi),Set(TEST_RETURN="NONE") exten =>
2006 Oct 13
2
AEL Question
Hi, all. I'm making my first foray into AEL. I'm starting with a simple macro, but I've already encountered an odd behaviour. I'm wondering if someone can shed some insight: Asterisk 1.2.9.1 macro newPlaceCallPSTN { s => { TIMEOUT(absolute)=7200; NoOp(Analog Out List: ${ANALOGOUT}); ChanIsAvail(${ANALOGOUT}); NoOp(Available Out List:
2006 Feb 21
1
Outbound Routing does not use Multiple Trunks
Hello, I have a TDM400 and currently have 2 of the ZAP Trunks configured on it. Zap/1-1 and Zap/2-1. I am Running Asterisk@home Version 2.4 with AMP version 1.10.010 In my Outbound Routing I have the Trunk Sequence set up so that 0 is Zap/1-1 and 1 is ZAP/2-1 What I see is that when Trunk Sequence 0 is full, it does not open Trunk Sequence 1. I have found that this is true even if I