similar to: expression parsing

Displaying 20 results from an estimated 3000 matches similar to: "expression parsing"

2004 Aug 18
1
Testing null values: ast_yyerror(): syntax error
OK, I'm going nuts here trying to correctly identify null values, specifically when callerID info is not available. FYI, I'm running Asterisk CVS-HEAD-08/17/04-13:08:53, and Bison 1.875a (debian Sid). A snippit of my dialplan looks like this: exten => s,1,SetCIDNum(${CALLERIDNUM}) exten => s,2,NoOp,${CALLERID} exten => s,3,DBGet(temp=idiot/${CALLERIDNUM}) ; Is the person calling
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)
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
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
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 =>
2005 Sep 01
1
dialparties.agi is returning no extensions to dial
Hi, I set up a ring group. I would like for people who select a certain voice menu option to ring a list of extensions (I have just one extension in there at the moment) and if it doesn't answer to go to an extension's voice mail. I am using a version of asterisk from CVS, last updated a couple of weeks ago. This line in extensions_addtional.conf sends the call to ringgroup 3 if
2006 May 31
0
extra parameter for DB read function
There are often times that I want to read a DB value from the dialplan, and if this family/key pair does not exist, set it to some default value. for example: 1234,1 => Set(EMAILADDR=${DB(x/y)} 1234,2 => GotoIf($["${EMAILADDR}" = ""]?3:4) 1234,3 => Set(EMAILADDR=Someone@test.com) 1234,4 => NoOp(${EMAILADDR}) 1234,5 => Hangup() I have modified the db function
2005 Jun 20
1
Looking for PRI Outbound Caller ID Configuration
I'm having trouble setting the outbound caller ID on calls I make from my PRI trunk group. The PRIs are served out of a 5ESS. Telco has set the PRIs up for user provided caller id information, so I believe I just don't have it set up right in my dialplan or something. I can't seem to find an example of setting the outbound caller ID specifically for a 5ESS. Does anyone have an
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
2005 Jul 19
2
Installation
Hi there , I am a new user of Asterisk. When I downloaded it and was trying to compile it, i got the following error message after it run for a while. This error came after I run make. __________________________________________ gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686
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 =>
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",
2004 May 07
2
Trouble compiling latest CVS
Hi there, since a couple of days I can't seem to be able to compile CVS HEAD on RH7.2. On a RH7.3 machine with bison-1.35-1 it appears to be fine though... any advice? Philipp System: RH 7.2 bison-1.28-7 Related issue: http://rpm.pbone.net/index.php3/stat/4/idpl/411535/com/bison-1.35- 6.i386.rpm.html The error message: bison ast_expr.y --name-prefix=ast_yy -o ast_expr.c
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...
2005 Jun 21
0
Looking for PRI Outbound Caller ID Configura tion
As an employee in the technical operations of a CLEC this information is easily obtainable by anyone that has access to the Class 5 switch servicing that PRI... A Q.931 trace in the Class 5 Switch will tell the whole story.... -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Rich Adamson Sent: Tuesday, June
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})} >
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
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 =>
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 =>
2004 Jul 13
1
asterisk compile problem
Hello all As of 5pm PST today (7/13), I pulled Asterisk down off of cvs.digium.com:/usr/cvsroot and tried to compile it on Linux ES 2.1 Actually, I pulled down zaptel, libri & asterisk and compiled them in that order as per my install guide. When I try to compile asterisk with "make clean; make install", it runs okay for a bit and then I get the following error: (ignore Outlooks