similar to: AEL scripting, CUT use and string concatenation

Displaying 20 results from an estimated 1000 matches similar to: "AEL scripting, CUT use and string concatenation"

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:
2010 Mar 09
0
Asterisk 1.6.2.5 crash with chan_capi upon calling to PSTN
Hi, I am having a problem with (Asterisk is crashing) with a Fritz card PCI / chan_capi. Receiving Calls from PSTN works, but outbound calls make asterisk crash (Speicherzugriffsfehler/Segmentation fault). The crash occurs upon dialing with the other phone not even ringing. I hereby ask if somebody reading this list can confirm or disprove my issue. Does anbody run a recent asterisk 2.6 with
2011 May 05
1
ael context ~~s~~ in macros broke Dial() U() option in 1.6.2.17.2 and newer
Hi, I think this must be a bug introduced with 1.6.2.17.something. When I upgrade from asterisk-1.6.2.16.1 to asterisk-1.6.2.17.2 or 1.6.2.18, my AEL Dial() commands with the "U" options fail with the following error: [May 3 12:05:54] ERROR[6300] app_stack.c: Attempt to reach a non-existent destination for gosub: (Context:screen, Extension:s, Priority:1) Here are the segments
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})}) {
2007 Jan 23
0
AEL parse failure on 1.2.14
Am I doing something really stupid in this AEL macro, or is nesting an 'if' inside a 'switch', inside an 'if' not supported in the 1.2 AEL parser? macro stdexten( ext , dev ) { // First determine if the SIP peer is registered here Set(aretheyhere=${SIPPEER(${ext}:status)}); if(${aretheyhere:0:2}) == "OK") {
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 =>
2015 May 12
1
AEL keyword IfTime with variable on time range
Sorry, I forget to tell I tried, but not works. *Context:* context ivr_temp2 { s => { Proceeding(); str_time_01 = '06:00-12:00|*|*|*'; // Manh? ifTime (${str_time_01}) { Playback(ura/bom_dia); } } } The error is showed on "ael reload". *Console errors:* rs0000sr304*CLI> ael reload Command 'ael reload' failed.
2008 Dec 23
2
AEL Variable Warning Messages
I have two offices sharing a phone system. They also share a common internal context because all of the employees of the second office also work for the first office. Each office has 4 outside lines and I have defined 2 channel groups in my zapata.conf. The second office needs all of their outgoing calls to go out over their lines so the people they call will have the correct callerID. I
2007 Feb 23
2
Any way to get rid of AEL created contexts?
"show dialplan" keeps showing contexts created by AEL. I tried deleting /etc/asterisk/extensions.ael but kept getting these messages in the Asterisk log: Feb 14 21:39:53 WARNING[6074] pbx_ael.c: Unable to open '/etc/asterisk/extensions.ael': No such file or directory Feb 14 21:39:53 WARNING[6074] pbx.c: Requested contexts didn't get merged Is there any way to delete or
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
2014 Jul 11
2
CDR(dst) not set in AEL macro
Hi I'm using a macro to dial in a AEL dialplan. The problem is the macro do not set the field CDR(dst), showing only ~~s~~. I tried various configurations, but without solutions. This is the macro: macro dial-out(destno,dialstring,route_descr,interno) { __TRANSFER_CONTEXT=ipbx; if(${interno} = 1) { Set(__PICKUPMARK=${destno}); if(${ODBC_verify_user(${CALLERID(num)})} > 0) { t = tT; }
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",
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]:
2014 Jul 10
0
CDR(dst) in AEL macro
Hi I'm using a macro to dial in a AEL dialplan. The problem is the macro do not set the field CDR(dst), showing only ~~s~~. I tried various configurations, but without solutions. This is the macro: macro dial-out(destno,dialstring,route_descr,interno) { __TRANSFER_CONTEXT=ipbx; if(${interno} = 1) { Set(__PICKUPMARK=${destno}); if(${ODBC_verify_user(${CALLERID(num)})} > 0) { t = tT; }
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 =>
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 Dec 13
1
Problem with asterisk 1.4 Installation (undefined reference to `ast_copy_string')
Hi. After successfully running ./configure I run make. When running make I get the following error.. [CC] ast_expr2f.c -> ast_expr2f.o [CC] ast_expr2.c -> ast_expr2.o [CC] strcompat.c -> strcompat.o [LD] aelparse.o aelbison.o pbx_ael.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o -> aelparse aelparse.o(.text+0x3029): In function `ael_yylex':
2007 Aug 31
1
AEL missing in recent 1.2 releases?
Greetings list, I've just been upgrading one of our servers from 1.2.17 to 1.2.21.1-r1, and noticed that it's not picking up any of my macros written in AEL. Upon further examination, it looks like pbx_ael is missing. Is this a deliberate change, or is this something I need to address in the pre-compile configuration? Regards, Chris -- C.M. Bagnall, Director, Minotaur I.T. Limited For
2006 Jan 06
0
--- AEL 2 --- Try it out!
Hello-- I've just written and submitted a new module for asterisk, to the asterisk bug database. See http://bugs.digium.com/view.php?id=6021 There is a file there you can download, AEL2v0.3.patch.bz2 and I created a wiki page: http://www.voip-info.org/wiki/view/Asterisk+AEL2 Why did I do it? Because I was very impressed with AEL, but the current AEL compiler isn't real good at