similar to: MATH function

Displaying 20 results from an estimated 7000 matches similar to: "MATH function"

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
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",
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...
2008 Apr 15
1
gotoif syntax error
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 =>
2006 Nov 14
6
unable to get channel lock BAD BAD BAD
I am seeing the following in my log file (standard trixbox install). One seems to be complaining about an error in the dialplan but it won't tell me what file or what line. The other (maybe related) is complaining about a channel lock. How to do go about trying to figure out what the problem is and how to solve it? ---------------Logfile-------------------------------------------- Nov 14
2006 Jun 21
2
FW: syntax error
(Try again from the proper email address) --Rob -----Original Message----- From: Rob Thomas Sent: Thursday, 22 June 2006 12:22 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] syntax error That's freePBX or AMP code that we've since fixed - The replacement line is 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 =>
2006 May 16
2
Using REGEX function
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Arial">Greetings,<br> <br> I'm running
2008 May 05
3
simple realtime question
HI, Does asterisk will ignore the setting in files if realtime is applied, say asterisk will ignore all the setting in sip.conf if realtime table sip_buddies is applied? ango
2009 Feb 24
7
multiple asterisks in a server
Hi all, Is it possible to install more than 1 asterisk in a single server? If yes, what do I need to set and take care? Rgds, ango
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})} >
2009 Jul 31
1
asterisk 1.6 call forwarding
Dear All, I'n trying to make a simple call forwarding, however I have small problem when evaluating an expresion. Here is my extensions.conf ... ; Unconditional Call Forward exten => _#21*X.,1,Set(DB(CFIM/${CALLERID(num)})=${EXTEN:4}) exten => _#21*X.,2,Hangup() exten => #21#,1,Set(ignored=${DB_DELETE(CFIM/${CALLERID(num)})}) exten => #21#,2,Hangup() ... exten =>
2010 Aug 09
1
op_div: non-numeric argument
Ladies, Gentlemen We are experiencing an unusual problem in our asterisk 1.4.34.. We are attempting to determine if channels are in use before paging to them. This works correctly, as in it pages the phone.. however, we see the error message below on the console... after googling, we discovered limited information regarding the issue... -- Executing [NPANXX7298 at from-pstn:1]
2008 Jan 16
3
volume problem
Hi all, I have a TDM400 with all FXO on it. When I make an outgoing call, I can hear callee but callee claims the volume is too low so that he/she can't hear very clear. Can I adjust to increase the volume in callee side? Is it increase the value of txgain can solve the problem? ango
2009 May 29
2
regarding to field of accountcode
Hi, I use realtime and I found that changing accountcode needed to restart asterisk to activate that code and shown in CDR. Does it has a way to update accountcode without restart asterisk? ango
2006 Feb 22
0
Outbound problem sip chanel
I setup my aah box with a sip trunk at irisxa.iristel.net Incaming it is ok but when I try to dial 8 and the nr where I want to call I get all line is busy. In my log I have these: Feb 22 14:33:04 DEBUG[3156] manager.c: Manager received command 'Command' Feb 22 14:33:04 DEBUG[3156] manager.c: Manager received command 'Command' Feb 22 14:33:19 VERBOSE[2721] logger.c: --
2006 Feb 13
0
problem with outgoing calls Unable to create channel of type 'ZAP' (cause 34 - Circuit/channel congestion)
hi i've configured a TE205P on asterisk at home this is my zaptel.conf span=1,0,0,ccs,hdb3,crc4,yellow span=2,0,0,ccs,hdb3,crc4,yellow bchan = 1-15, 17-31 dchan = 16 bchan = 32-46,48-62 dchan = 47 loadzone = it defaultzone = it and my zapata.conf signalling=pri_cpe ; pri_cpe = PRI slave ; pri_net = PRI master switchtype=national usecallerid=yes hidecallerid=no callwaiting=yes
2006 Jan 31
0
RE: [Asterisk-Announce] Asterisk 1.2.4 and Zaptel1.2.3
> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Kevin P. Fleming > Sent: Tuesday, January 31, 2006 3:41 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] RE: [Asterisk-Announce] Asterisk 1.2.4 and > Zaptel1.2.3 > > Damon Estep
2006 Jun 21
1
syntax error
Does anyone know why this row: exten => s,2,GotoIf($[${CALLERIDNAME:0:${LEN(${RGPREFIX})}} != ${RGPREFIX}]?4:3) generate this error: ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected TOK_NE, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input: != ^ ? I was unable to debug it. -- DV