Re: [asterisk-users] AEL switch & case

2022-08-31 Thread Antony Stone
Replying to list this time... On Wednesday 31 August 2022 at 12:47:13, aster...@phreaknet.org wrote: > On 8/31/2022 6:32 AM, Antony Stone wrote: > > Hi. > > > > I think I've discovered a bug in either the implementation or the > > documentation of the AEL switch command. > > > >

[asterisk-users] AEL switch & case

2022-08-31 Thread Antony Stone
Hi. I think I've discovered a bug in either the implementation of the documentation of the AEL switch command. https://wiki.asterisk.org/wiki/display/AST/AEL+Conditionals gives an example of using switch, and states at the bottom: "Neither the switch nor case values are wrapped in $[ ]; they

[asterisk-users] AEL: quoting commas in a macro argument

2017-07-31 Thread Kirill Katsnelson
When passing a string variable to a macro, and the string contains commas, this break argument parsing. Is there a decent way to quote the commas in this scenario? -kkm -- _ -- Bandwidth and Colocation Provided by

Re: [asterisk-users] AEL keyword IfTime with variable on time range

2015-05-13 Thread Rafael dos Santos Saraiva
, 2015 11:58 AM *To:* Asterisk Users Mailing List - Non-Commercial Discussion *Subject:* [asterisk-users] AEL keyword IfTime with variable on time range Hi It's possible using a variable in the iftime keyword argument? E.g: context text { s = { timerange = '06:00-12:00

Re: [asterisk-users] AEL keyword IfTime with variable on time range

2015-05-12 Thread Rafael dos Santos Saraiva
List - Non-Commercial Discussion *Subject:* [asterisk-users] AEL keyword IfTime with variable on time range Hi It's possible using a variable in the iftime keyword argument? E.g: context text { s = { timerange = '06:00-12:00|*|*|*'; ifTime(${timerange} { Playback(ivr

Re: [asterisk-users] AEL keyword IfTime with variable on time range

2015-05-12 Thread Tech Support
- Non-Commercial Discussion Subject: [asterisk-users] AEL keyword IfTime with variable on time range Hi It's possible using a variable in the iftime keyword argument? E.g: context text { s = { timerange = '06:00-12:00|*|*|*'; ifTime(${timerange} { Playback(ivr/goodbye

[asterisk-users] AEL keyword IfTime with variable on time range

2015-05-12 Thread Rafael dos Santos Saraiva
Hi It's possible using a variable in the iftime keyword argument? E.g: context text { s = { timerange = '06:00-12:00|*|*|*'; ifTime(${timerange} { Playback(ivr/goodbye); } } } thanks [image: Sua Foto] rafaels...@gmail.comRafael S. SaraivaPorto Alegre - RS | Mobile: (51)

[asterisk-users] AEL Macro are evil :-)

2013-02-24 Thread Leandro Dardini
I just discover an hidden problem with AEL macro I want to have your feedback. If you use a macro to dial out, like dialout(${EXTEN}), the leg extension will became s and if it happens you transfer the call, that will be the callerid appearing on the other phone display. I am just

Re: [asterisk-users] AEL Macro are evil :-)

2013-02-24 Thread Mitul Limbani
Hi, You might want to use ${MACRO_EXTEN} variable inside to preserve exten variable of the original dialplan exten variable. Mitul On Feb 24, 2013 4:04 PM, Leandro Dardini ldard...@gmail.com wrote: I just discover an hidden problem with AEL macro I want to have your feedback. If you use a

Re: [asterisk-users] AEL Macro are evil :-)

2013-02-24 Thread Vieri
This link may be a bit too old: https://issues.asterisk.org/jira/browse/ASTERISK-9518 so maybe using MACRO_EXTEN won't work with macros in AEL. Haven't tried that. Vieri --- On Sun, 2/24/13, Mitul Limbani mi...@enterux.in wrote: Hi, You might want to use ${MACRO_EXTEN} variable inside to

Re: [asterisk-users] AEL Macro are evil :-)

2013-02-24 Thread Leandro Dardini
Knowing the exten variable of the original dialplan is not a problem. The problem is just when the call is transferred via blind transfer. Asterisk does a little magic with the callerid of the legs and using Macro, just breaks it. If Joe at ext 100 call Sally at ext 200 and then Joe transfers the

[asterisk-users] AEL syntax consistency

2012-11-27 Thread Adam Moffett
How consistent has the syntax for extensions.ael been from version to version? extensions.conf has annoyed me in this regard. i.e.: commas to pipes, pipes back to commas, macro to gosub, etc etc. -- _ -- Bandwidth and

[asterisk-users] AEL x LUA

2011-12-13 Thread Antonio Modesto
Hello, I would like to receive some suggestions about dialplans written in lua, actually my dialplan is written in ael, but i'm having some problems with it. I noticed that asterisk just translates ael to the old extension language, does it do the same with lua? Thanks --

Re: [asterisk-users] AEL x LUA

2011-12-13 Thread Matthew Nicholson
On Tue, 2011-12-13 at 16:00 -0200, Antonio Modesto wrote: Hello, I would like to receive some suggestions about dialplans written in lua, actually my dialplan is written in ael, but i'm having some problems with it. I noticed that asterisk just translates ael to the old extension

Re: [asterisk-users] ael context ~~s~~ in macros broke Dial() U() option in 1.6.2.17.2 and newer

2011-08-08 Thread Mark G Thomas
To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] ael context ~~s~~ in macros broke Dial() U() option in 1.6.2.17.2 and newer Hi, On Thu, May 05, 2011 at 05:30:04PM -0400, Paul Belanger wrote: On 11-05-05 05:14 PM, Mark G Thomas wrote: Hi, I think

Re: [asterisk-users] ael context ~~s~~ in macros broke Dial() U() option in 1.6.2.17.2 and newer

2011-05-06 Thread Mark G Thomas
Hi, On Thu, May 05, 2011 at 05:30:04PM -0400, Paul Belanger wrote: On 11-05-05 05:14 PM, Mark G Thomas wrote: 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

Re: [asterisk-users] ael context ~~s~~ in macros broke Dial() U() option in 1.6.2.17.2 and newer

2011-05-06 Thread Watkins, Bradley
immediately and then destroy it. From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users- boun...@lists.digium.com] On Behalf Of Mark G Thomas Sent: Friday, May 06, 2011 12:02 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] ael context ~~s

[asterisk-users] AEL Eswitches

2011-02-09 Thread Thiago Maluf
Hi List, Would someone can to explain me the main difference in SWITCHES or ESWITCHES in AEL. context default { switches { DUNDi/e164; IAX2/box5; }; eswitches { IAX2/context@${CURSERVER}; }; }; All the best, Thiago --

Re: [asterisk-users] AEL Eswitches

2011-02-09 Thread Tilghman Lesher
On Wednesday 09 February 2011 13:31:36 Thiago Maluf wrote: Hi List, Would someone can to explain me the main difference in SWITCHES or ESWITCHES in AEL. context default { switches { DUNDi/e164; IAX2/box5; }; eswitches {

[asterisk-users] AEL - what is error: ael.flex:647 ael_yylex: Unhandled char(s):

2010-08-25 Thread Zeeshan Zakaria
Hi List, When doing 'ael reload' on two servers, which are setup with asterisk 1.4.22 and 1.4.35 respectively, I am getting multiple lines of this strange error: ERROR[15483]: ael.flex:647 ael_yylex: Unhandled char(s): On three other servers with same versions of asterisk, i.e. 1.4.22, I don't

Re: [asterisk-users] AEL - what is error: ael.flex:647 ael_yylex:Unhandled char(s):

2010-08-25 Thread Danny Nicholas
From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Zeeshan Zakaria Sent: Wednesday, August 25, 2010 10:24 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] AEL - what is error: ael.flex:647

Re: [asterisk-users] AEL - what is error: ael.flex:647 ael_yylex:Unhandled char(s):

2010-08-25 Thread Zeeshan Zakaria
*Sent:* Wednesday, August 25, 2010 10:24 AM *To:* Asterisk Users Mailing List - Non-Commercial Discussion *Subject:* [asterisk-users] AEL - what is error: ael.flex:647 ael_yylex:Unhandled char(s): Hi List, When doing 'ael reload' on two servers, which are setup with asterisk 1.4.22 and... Any

Re: [asterisk-users] AEL - what is error: ael.flex:647 ael_yylex:Unhandled char(s):

2010-08-25 Thread Watkins, Bradley
From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Zeeshan Zakaria Sent: Wednesday, August 25, 2010 11:43 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] AEL

Re: [asterisk-users] AEL - what is error: ael.flex:647 ael_yylex:Unhandled char(s):

2010-08-25 Thread Zeeshan Zakaria
AM To: Asterisk Users Mailing List - Non-Commercial Discussion *Subject:* Re: [asterisk-users] AEL - what is error: ael.flex:647 ael_yylex:Unhandled char(s): That's what I understood too from this one and probably only related google search result, but even ... Is there any chance

Re: [asterisk-users] AEL - what is error: ael.flex:647 ael_yylex:Unhandled char(s):

2010-08-25 Thread Rodrigo Lang
-users] AEL - what is error: ael.flex:647 ael_yylex:Unhandled char(s): That's what I understood too from this one and probably only related google search result, but even ... Is there any chance that these files were edited on a Windows machine and then copied back to the Asterisk boxes

Re: [asterisk-users] AEL - what is error: ael.flex:647 ael_yylex:Unhandled char(s):

2010-08-25 Thread Zeeshan Zakaria
It did the trick. Thanks a lot for solving this annoying problem. Yes, it was invisible ^M characters, which I could see in Vim, but not in vi. Now 'ael reload' ouput is how it should be. Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-08-25 1:29 PM, Rodrigo Lang rodrigoferreiral...@gmail.com

Re: [asterisk-users] AEL - what is error: ael.flex:647 ael_yylex:Unhandled char(s):

2010-08-25 Thread Steve Edwards
On Wed, 25 Aug 2010, Zeeshan Zakaria wrote: Apparently all Linux files have a mime type information stored in them, which can be checked using command: file -i filename Linux files are just a byte stream. They do not have mime type information stored in them. file works by examining the

Re: [asterisk-users] AEL - what is error: ael.flex:647 ael_yylex:Unhandled char(s):

2010-08-25 Thread Zeeshan Zakaria
Thanks Steve for clearing this confusion. Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-08-25 3:16 PM, Steve Edwards asterisk@sedwards.com wrote: On Wed, 25 Aug 2010, Zeeshan Zakaria wrote: Apparently all Linux files have a mime type informati... Linux files are just a byte stream.

Re: [asterisk-users] AEL in 1.6 and Gosub

2010-03-17 Thread Klaus Darilion
Am 17.03.2010 00:40, schrieb Steve Murphy: How about: blacklist(${exten}); macro blacklist(the_exten) { switch(the_exten) { pattern +4390[01]: Hangup(); default: return; } } Yes, that would work. I didn't knew the pattern

Re: [asterisk-users] AEL in 1.6 and Gosub

2010-03-17 Thread Elliot Murdock
Hello Klaus, Just for your quick reference, here are some other changes in the AEL from versions 1.4 to 1.6 (source: http://asteriskuptospeed.linuxinnovations.com/core1.4-1.6.2.html and CHANGES file) : Macros are now implemented underneath with the Gosub() application. Heaven Help You if you

Re: [asterisk-users] AEL in 1.6 and Gosub

2010-03-16 Thread Steve Murphy
On Mon, Mar 15, 2010 at 12:47 PM, Klaus Darilion klaus.mailingli...@pernau.at wrote: Am 15.03.2010 13:48, schrieb Kevin P. Fleming: Klaus Darilion wrote: Hi! I just updated from 1.4 to 1.6.2.6 and Asterisk complains about my AEL dialplan: application call to Gosub affects

[asterisk-users] AEL in 1.6 and Gosub

2010-03-15 Thread Klaus Darilion
Hi! I just updated from 1.4 to 1.6.2.6 and Asterisk complains about my AEL dialplan: application call to Gosub affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead What is the suggested replacement for an explicit Gosub() call? I use it

Re: [asterisk-users] AEL in 1.6 and Gosub

2010-03-15 Thread Kevin P. Fleming
Klaus Darilion wrote: Hi! I just updated from 1.4 to 1.6.2.6 and Asterisk complains about my AEL dialplan: application call to Gosub affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead What is the suggested replacement for an

Re: [asterisk-users] AEL in 1.6 and Gosub

2010-03-15 Thread Klaus Darilion
Am 15.03.2010 13:48, schrieb Kevin P. Fleming: Klaus Darilion wrote: Hi! I just updated from 1.4 to 1.6.2.6 and Asterisk complains about my AEL dialplan: application call to Gosub affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead

[asterisk-users] AEL, 1.6, CUT and commas

2009-12-03 Thread Olivier
Hello, How can you parse a comma separated list using function CUT and AEL ? I've tried but it displays error message (though is seems to find the correct value) : STRING=101,102 VAL=${CUT(STRING,\,,1)}; NoOp(VAL is ${VAL}); Cheers ___ -- Bandwidth

Re: [asterisk-users] AEL, 1.6, CUT and commas [SOLVED]

2009-12-03 Thread Olivier
2009/12/3 Olivier oza-4...@myamail.com Hello, How can you parse a comma separated list using function CUT and AEL ? I've tried but it displays error message (though is seems to find the correct value) : STRING=101,102 VAL=${CUT(STRING,\,,1)}; NoOp(VAL is ${VAL}); Cheers Sorry for

[asterisk-users] AEL problem: bug or feature?

2009-10-05 Thread Klaus Darilion
Hi! I have a problem with jump in AEL: _+43123456789! = jump +22; +22 = { NoOp(); } - OK _+43123456789! = jump 22; 22 = { NoOp(); } - OK _+43123456789! = jump 22; _22 = { NoOp(); } - OK _+43123456789! = jump +22; _+22 = { NoOp(); } -- AEL

Re: [asterisk-users] AEL problem: bug or feature?

2009-10-05 Thread Klaus Darilion
forgot to mention this happens on Asterisk 1.4.26.1 Klaus Darilion schrieb: Hi! I have a problem with jump in AEL: _+43123456789! = jump +22; +22 = { NoOp(); } - OK _+43123456789! = jump 22; 22 = { NoOp(); } - OK _+43123456789! = jump 22; _22

Re: [asterisk-users] AEL problem: bug or feature?

2009-10-05 Thread Steve Edwards
On Mon, 5 Oct 2009, Klaus Darilion wrote: forgot to mention this happens on Asterisk 1.4.26.1 Klaus Darilion schrieb: Hi! I have a problem with jump in AEL: _+43123456789! = jump +22; +22 = { NoOp(); } Don't you need another semi-colon after the closing brace? Since AEL

Re: [asterisk-users] AEL problem: bug or feature?

2009-10-05 Thread Philipp Kempgen
Klaus Darilion schrieb: forgot to mention this happens on Asterisk 1.4.26.1 Klaus Darilion schrieb: Hi! I have a problem with jump in AEL: _+43123456789! = jump +22; +22 = { NoOp(); } - OK _+43123456789! = jump 22; 22 = { NoOp(); } - OK

Re: [asterisk-users] AEL problem: bug or feature?

2009-10-05 Thread Klaus Darilion
Steve Edwards schrieb: On Mon, 5 Oct 2009, Klaus Darilion wrote: forgot to mention this happens on Asterisk 1.4.26.1 Klaus Darilion schrieb: Hi! I have a problem with jump in AEL: _+43123456789! = jump +22; +22 = { NoOp(); } Don't you need another semi-colon after the

Re: [asterisk-users] AEL problem: bug or feature?

2009-10-05 Thread Klaus Darilion
Philipp Kempgen schrieb: Klaus Darilion schrieb: forgot to mention this happens on Asterisk 1.4.26.1 Klaus Darilion schrieb: Hi! I have a problem with jump in AEL: _+43123456789! = jump +22; +22 = { NoOp(); } - OK _+43123456789! = jump 22; 22 = { NoOp(); }

[asterisk-users] ael conf and realtime

2009-03-05 Thread David fire
hi in ael the [general] equivalent is globals { } ? what is the equivalent in realtime??? can i use realtime and static ael or conf??? using realtime when i do sip show peers asterisk didnt show the realtime peers what can i do? Thanks David -- (\__/) (='.'=)This is Bunny. Copy and paste bunny

Re: [asterisk-users] AEL question: testing channel variables

2009-01-11 Thread Allann Jones
http://www.voip-info.org/wiki-Asterisk+variables http://www.voip-info.org/wiki-Asterisk+Dialplan+Globals Beware with the variable scope, if its scope is local the values can be lost, so declare the variable as global when its value must persist between calls. [globals] FOOBAR = NO

Re: [asterisk-users] AEL question: testing channel variables

2009-01-10 Thread Philipp Kempgen
Klaus Darilion schrieb: 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 '=',

[asterisk-users] AEL and };

2009-01-08 Thread Klaus Darilion
Hi! All the AEL examples have a semicolon after the closing curly bracket, e.g: context test { 1 = Hangup(); }; but without ; it works fine too, e.g: context test { 1 = Hangup(); } So - what is the reason for the ; after the closing curly bracket? thanks klaus

Re: [asterisk-users] AEL and };

2009-01-08 Thread Olivier
2009/1/8 Klaus Darilion klaus.mailingli...@pernau.at Hi! All the AEL examples have a semicolon after the closing curly bracket, e.g: context test { 1 = Hangup(); }; but without ; it works fine too, e.g: context test { 1 = Hangup(); } So - what is the reason for the ; after

Re: [asterisk-users] AEL and };

2009-01-08 Thread Watkins, Bradley
-Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Klaus Darilion Sent: Thursday, January 08, 2009 8:28 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] AEL

Re: [asterisk-users] AEL and };

2009-01-08 Thread Klaus Darilion
Subject: [asterisk-users] AEL and }; Hi! All the AEL examples have a semicolon after the closing curly bracket, e.g: context test { 1 = Hangup(); }; but without ; it works fine too, e.g: context test { 1 = Hangup(); } So - what is the reason for the ; after the closing curly

[asterisk-users] AEL question: testing channel variables

2009-01-08 Thread Klaus Darilion
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

Re: [asterisk-users] AEL question: testing channel variables

2009-01-08 Thread Julian Lyndon-Smith
Klaus Darilion wrote: 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 '=',

Re: [asterisk-users] AEL question: testing channel variables

2009-01-08 Thread Steve Murphy
On Thu, 2009-01-08 at 19:24 +0100, Klaus Darilion wrote: 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

Re: [asterisk-users] AEL question: testing channel variables

2009-01-08 Thread Brent Vrieze
Initialize FOOBAR to some know value (ie NO) and change it when you need to. Then it will always be defined. Klaus Darilion wrote: Hi! I use the following condition: if (${FOOBAR}=YES) { ... } The problem is, that if FOOBAR is not defined at all Asterisk generates a warning:

Re: [asterisk-users] AEL Variable Warning Messages

2009-01-05 Thread Brent Davidson
Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] AEL Variable Warning Messages Well, before I file a bug I have another question... In AEL, what is the correct syntax? Do all variable references still need to be wrapped

Re: [asterisk-users] AEL Variable Warning Messages

2009-01-05 Thread Benoit
Brent Davidson a écrit : Watkins, Bradley wrote: ... Well, before I file a bug I have another question... In AEL, what is the correct syntax? Do all variable references still need to be wrapped in ${} or not? If they do, then the documentation on voip-info.org needs to be

Re: [asterisk-users] AEL Variable Warning Messages

2009-01-05 Thread Brent Davidson
Benoit wrote: Brent Davidson a écrit : Another question along these lines... If I set a Global called TRUNK in the globals section and later assign do a TRUNK=whatever it appears that a local variable called TRUNK is created instead of using the global. You must explicitly use the

Re: [asterisk-users] AEL Variable Warning Messages

2008-12-31 Thread Brent Davidson
Steve Murphy wrote: On Tue, 2008-12-23 at 12:14 -0600, Brent Davidson wrote: 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

Re: [asterisk-users] AEL Variable Warning Messages

2008-12-31 Thread Watkins, Bradley
Subject: Re: [asterisk-users] AEL Variable Warning Messages Well, before I file a bug I have another question... In AEL, what is the correct syntax? Do all variable references still need to be wrapped in ${} or not? If they do, then the documentation on voip-info.org needs

[asterisk-users] AEL: how to check if variable is defined

2008-12-29 Thread Klaus Darilion
Hi! I use an if condition in extensions.ael to check if a channel variable is defined and if defined I add a certain header: context toNormaleRufe { _X. = { if (${NUMBER}) { SIPAddHeader(X-NUMBER: ${NUMBER}); }; ... }; This works fine,

Re: [asterisk-users] AEL Variable Warning Messages

2008-12-29 Thread Steve Murphy
On Tue, 2008-12-23 at 12:14 -0600, Brent Davidson wrote: 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

Re: [asterisk-users] AEL: how to check if variable is defined

2008-12-29 Thread Philipp Kempgen
Klaus Darilion schrieb: I use an if condition in extensions.ael to check if a channel variable is defined and if defined I add a certain header: context toNormaleRufe { _X. = { if (${NUMBER}) { SIPAddHeader(X-NUMBER: ${NUMBER}); };

Re: [asterisk-users] AEL: how to check if variable is defined

2008-12-29 Thread Philipp Kempgen
Philipp Kempgen schrieb: Klaus Darilion schrieb: I use an if condition in extensions.ael to check if a channel variable is defined and if defined I add a certain header: context toNormaleRufe { _X. = { if (${NUMBER}) { SIPAddHeader(X-NUMBER: ${NUMBER});

Re: [asterisk-users] AEL: how to check if variable is defined

2008-12-29 Thread Richard Lyman
Philipp Kempgen wrote: *snipped But I guess it wouldn't hurt to add a DEFINED() function to Asterisk. if (DEFINED(myvariable)) { // ... } Isn't that what ISNULL is for? ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com

Re: [asterisk-users] AEL: how to check if variable is defined

2008-12-29 Thread Dave Fullerton
Philipp Kempgen wrote: Philipp Kempgen schrieb: Klaus Darilion schrieb: I use an if condition in extensions.ael to check if a channel variable is defined and if defined I add a certain header: context toNormaleRufe { _X. = { if (${NUMBER}) {

Re: [asterisk-users] AEL: how to check if variable is defined

2008-12-29 Thread Philipp Kempgen
Dave Fullerton schrieb: Philipp Kempgen wrote: But I guess it wouldn't hurt to add a DEFINED() function to Asterisk. if (DEFINED(myvariable)) { // ... } Isn't that what EXISTS() is for? Well, yes. :-) I've never needed it before and it didn't come to my mind. Philipp

Re: [asterisk-users] AEL: how to check if variable is defined

2008-12-29 Thread Philipp Kempgen
Richard Lyman schrieb: Philipp Kempgen wrote: But I guess it wouldn't hurt to add a DEFINED() function to Asterisk. if (DEFINED(myvariable)) { // ... } Isn't that what ISNULL is for? No. ISNULL() works on values not on variables. But Dave Fullerton found EXISTS():

Re: [asterisk-users] AEL: how to check if variable is defined

2008-12-29 Thread Richard Lyman
Philipp Kempgen wrote: Richard Lyman schrieb: Philipp Kempgen wrote: But I guess it wouldn't hurt to add a DEFINED() function to Asterisk. if (DEFINED(myvariable)) { // ... } Isn't that what ISNULL is for? No. ISNULL() works on values not on

Re: [asterisk-users] AEL: how to check if variable is defined

2008-12-29 Thread Klaus Darilion
Thanks Dave, Philipp and Richard! klaus Richard Lyman wrote: Philipp Kempgen wrote: Richard Lyman schrieb: Philipp Kempgen wrote: But I guess it wouldn't hurt to add a DEFINED() function to Asterisk. if (DEFINED(myvariable)) { // ... } Isn't that what

[asterisk-users] AEL Variable Warning Messages

2008-12-23 Thread Brent Davidson
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

Re: [asterisk-users] AEL Variable Warning Messages

2008-12-23 Thread Philipp Kempgen
Brent Davidson schrieb: macro outside-dial ( num ) { if (${DB_EXISTS(Office/${CALLERID(num)})}) { TRUNK=Zap/r2; } else { TRUNK=Zap/r1; } Dial(${TRUNK}/${num},,Ttok); } [Dec 23 12:16:22] WARNING[2994]: pbx_ael.c:2500 check_pval_item: Warning: file

Re: [asterisk-users] AEL Variable Warning Messages

2008-12-23 Thread Brent Davidson
Philipp Kempgen wrote: Brent Davidson schrieb: macro outside-dial ( num ) { if (${DB_EXISTS(Office/${CALLERID(num)})}) { TRUNK=Zap/r2; } else { TRUNK=Zap/r1; } Dial(${TRUNK}/${num},,Ttok); } [Dec 23 12:16:22] WARNING[2994]: pbx_ael.c:2500 check_pval_item: Warning:

Re: [asterisk-users] AEL Variable Warning Messages

2008-12-23 Thread Dave Fullerton
Brent Davidson wrote: Philipp Kempgen wrote: Brent Davidson schrieb: macro outside-dial ( num ) { if (${DB_EXISTS(Office/${CALLERID(num)})}) { TRUNK=Zap/r2; } else { TRUNK=Zap/r1; } Dial(${TRUNK}/${num},,Ttok); } [Dec 23 12:16:22] WARNING[2994]:

Re: [asterisk-users] AEL Variable Warning Messages

2008-12-23 Thread Brent Davidson
Dave Fullerton wrote: I had gotten similar messages when I forgot to put quotes around channels like that (took me forever to realize that one). Since you have them I would say this is a bug. What version of asterisk are you running? -Dave I'm running 1.4.21.2 and I can't upgrade until

Re: [asterisk-users] AEL Variable Warning Messages

2008-12-23 Thread Jeff LaCoursiere
On Tue, 23 Dec 2008, Brent Davidson wrote: Dave Fullerton wrote: I had gotten similar messages when I forgot to put quotes around channels like that (took me forever to realize that one). Since you have them I would say this is a bug. What version of asterisk are you running? -Dave I'm

Re: [asterisk-users] AEL Variable Warning Messages

2008-12-23 Thread Tzafrir Cohen
On Tue, Dec 23, 2008 at 03:09:51PM -0600, Brent Davidson wrote: Unfortunately 1.4.22 no longer has Zaptel. :( Asterisk 1.4.22 builds with both Zaptel and DAHDI. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.co...@xorcom.com +972-50-7952406

Re: [asterisk-users] AEL Variable Warning Messages

2008-12-23 Thread Brent Davidson
Tzafrir Cohen wrote: On Tue, Dec 23, 2008 at 03:09:51PM -0600, Brent Davidson wrote: Unfortunately 1.4.22 no longer has Zaptel. :( Asterisk 1.4.22 builds with both Zaptel and DAHDI. I spent several hours trying to make it work yesterday and it just wouldn't. I kept getting an

Re: [asterisk-users] AEL Variable Warning Messages

2008-12-23 Thread Brent Davidson
Jeff LaCoursiere wrote: On Tue, 23 Dec 2008, Brent Davidson wrote: Dave Fullerton wrote: I had gotten similar messages when I forgot to put quotes around channels like that (took me forever to realize that one). Since you have them I would say this is a bug. What version of asterisk

Re: [asterisk-users] AEL Variable Warning Messages

2008-12-23 Thread Tzafrir Cohen
On Tue, Dec 23, 2008 at 04:01:24PM -0600, Brent Davidson wrote: Tzafrir Cohen wrote: On Tue, Dec 23, 2008 at 03:09:51PM -0600, Brent Davidson wrote: Unfortunately 1.4.22 no longer has Zaptel. :( Asterisk 1.4.22 builds with both Zaptel and DAHDI. I spent several hours

Re: [asterisk-users] AEL Variable Warning Messages

2008-12-23 Thread Brent Davidson
Tzafrir Cohen wrote: What error message from where? With Zaptel the echo canceller settings are global (that is: one hard-coded echo canceller). With DAHDI there are echo canceller modules and you can (and actually need to) set them per-channel. It might have something to do with the

[asterisk-users] ael vs conf

2008-12-18 Thread David fire
hi what i should use? ael or conf??? thanks David -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users

Re: [asterisk-users] ael vs conf

2008-12-18 Thread RE Kushner List Account
David fire wrote: hi what i should use? ael or conf??? I think it's personal choice at this point, I recently switched everything to ael, it's easier to read and follow the flow and less typing of redundant stuff. I have found that ael finds more of my fat finger mistakes when it compiles in

Re: [asterisk-users] ael vs conf

2008-12-18 Thread Tzafrir Cohen
On Thu, Dec 18, 2008 at 10:48:03AM -0200, David fire wrote: hi what i should use? ael or conf??? lua ? thanks David Silly (and untested) tip of the day: Instead of using include, use templates: If you have: [a] exten = _12X [b] include = a exten = _1. This won't work as planned,

Re: [asterisk-users] ael vs conf

2008-12-18 Thread David fire
??? 2008/12/18 Tzafrir Cohen tzafrir.co...@xorcom.com On Thu, Dec 18, 2008 at 10:48:03AM -0200, David fire wrote: hi what i should use? ael or conf??? lua ? thanks David Silly (and untested) tip of the day: Instead of using include, use templates: If you have:

Re: [asterisk-users] ael vs conf

2008-12-18 Thread Steve Murphy
On Thu, 2008-12-18 at 15:36 +0200, Tzafrir Cohen wrote: On Thu, Dec 18, 2008 at 10:48:03AM -0200, David fire wrote: hi what i should use? ael or conf??? lua ? thanks David Silly (and untested) tip of the day: Instead of using include, use templates: If you have:

[asterisk-users] ael queue gosub already has PBX structure??

2008-12-17 Thread Giedrius Augys
Hello, I want that after client and queue member call would be established, cmd queue runs some 'procedures' . So I am using cmd Queue option 'gosub'. This is my example of ael : context QUEUE { _X. = { Ringing(); Wait(4); Answer();

Re: [asterisk-users] ael queue gosub already has PBX structure??

2008-12-17 Thread Mark Michelson
Giedrius Augys wrote: Hello, I want that after client and queue member call would be established, cmd queue runs some 'procedures' . So I am using cmd Queue option 'gosub'. This is my example of ael : context QUEUE { _X. = { Ringing(); Wait(4);

Re: [asterisk-users] ael queue gosub already has PBX structure??

2008-12-17 Thread Giedrius Augys
2008/12/17 Mark Michelson mmichel...@digium.com Giedrius Augys wrote: Hello, I want that after client and queue member call would be established, cmd queue runs some 'procedures' . So I am using cmd Queue option 'gosub'. This is my example of ael : context QUEUE { _X. = {

Re: [asterisk-users] AEL NoOp not working [SOLVED]

2008-11-07 Thread Olivier
2008/11/6 Steve Murphy [EMAIL PROTECTED] On Thu, 2008-11-06 at 13:55 +0100, Olivier wrote: Yes, you're right : NoOp needs verbosity of 3 and above. Thanks for helping. The surprising thing is that AEL Verbose prints output whatever the verbosity level is (even with 0). Would you

Re: [asterisk-users] AEL NoOp not working

2008-11-06 Thread Olivier
2008/11/5 Atis Lezdins [EMAIL PROTECTED] On Wed, Nov 5, 2008 at 5:28 PM, Olivier [EMAIL PROTECTED] wrote: 2008/11/5 Atis Lezdins [EMAIL PROTECTED] On Wed, Nov 5, 2008 at 12:39 PM, Olivier [EMAIL PROTECTED] wrote: Hi, I've new to http://www.voip-info.org/wiki/view/Asterisk+AEL2

Re: [asterisk-users] AEL NoOp not working

2008-11-06 Thread Steve Murphy
On Thu, 2008-11-06 at 13:55 +0100, Olivier wrote: Yes, you're right : NoOp needs verbosity of 3 and above. Thanks for helping. The surprising thing is that AEL Verbose prints output whatever the verbosity level is (even with 0). Would you qualify this as normal ? Olivier-- The

Re: [asterisk-users] AEL NoOp not working

2008-11-05 Thread Atis Lezdins
On Wed, Nov 5, 2008 at 12:39 PM, Olivier [EMAIL PROTECTED] wrote: Hi, I've new to http://www.voip-info.org/wiki/view/Asterisk+AEL2 I'm using NoOp and Verbose functions inside extensions.ael. Strangely, NoOp is not printing anything in Asterisk console while Verbose is working. Am I missing

[asterisk-users] AEL NoOp not working

2008-11-05 Thread Olivier
Hi, I've new to http://www.voip-info.org/wiki/view/Asterisk+AEL2 I'm using NoOp and Verbose functions inside extensions.ael. Strangely, NoOp is not printing anything in Asterisk console while Verbose is working. Am I missing something obvious ? Cheers

Re: [asterisk-users] AEL NoOp not working

2008-11-05 Thread Olivier
2008/11/5 Atis Lezdins [EMAIL PROTECTED] On Wed, Nov 5, 2008 at 12:39 PM, Olivier [EMAIL PROTECTED] wrote: Hi, I've new to http://www.voip-info.org/wiki/view/Asterisk+AEL2 I'm using NoOp and Verbose functions inside extensions.ael. Strangely, NoOp is not printing anything in Asterisk

Re: [asterisk-users] AEL NoOp not working

2008-11-05 Thread Atis Lezdins
On Wed, Nov 5, 2008 at 5:28 PM, Olivier [EMAIL PROTECTED] wrote: 2008/11/5 Atis Lezdins [EMAIL PROTECTED] On Wed, Nov 5, 2008 at 12:39 PM, Olivier [EMAIL PROTECTED] wrote: Hi, I've new to http://www.voip-info.org/wiki/view/Asterisk+AEL2 I'm using NoOp and Verbose functions inside

Re: [asterisk-users] AEL and swap from macros to contexts

2008-10-07 Thread Pavel Jezek
Atis Lezdins wrote: On Tue, Oct 7, 2008 at 8:45 AM, Pavel Jezek [EMAIL PROTECTED] wrote: Steve Murphy wrote: On Mon, 2008-10-06 at 18:25 +0200, Pavel Jezek wrote: Atis Lezdins wrote: On Mon, Oct 6, 2008 at 5:21 PM, Pavel Jezek [EMAIL PROTECTED] wrote:

Re: [asterisk-users] AEL and swap from macros to contexts

2008-10-07 Thread Atis Lezdins
On Tue, Oct 7, 2008 at 2:20 PM, Pavel Jezek [EMAIL PROTECTED] wrote: Atis Lezdins wrote: On Tue, Oct 7, 2008 at 8:45 AM, Pavel Jezek [EMAIL PROTECTED] wrote: Steve Murphy wrote: On Mon, 2008-10-06 at 18:25 +0200, Pavel Jezek wrote: Atis Lezdins wrote: On Mon, Oct 6, 2008 at 5:21 PM,

Re: [asterisk-users] AEL and swap from macros to contexts

2008-10-07 Thread Atis Lezdins
On Tue, Oct 7, 2008 at 8:45 AM, Pavel Jezek [EMAIL PROTECTED] wrote: Steve Murphy wrote: On Mon, 2008-10-06 at 18:25 +0200, Pavel Jezek wrote: Atis Lezdins wrote: On Mon, Oct 6, 2008 at 5:21 PM, Pavel Jezek [EMAIL PROTECTED] wrote: Hi, according to discussion on asterisk IRC, where

[asterisk-users] AEL and swap from macros to contexts

2008-10-06 Thread Pavel Jezek
Hi, according to discussion on asterisk IRC, where people said, that macros will be depracated, I tried to migrate from macros to contexts and Gosub but if I try to use gosub in extensions.ael, ael compiler complains, that I shouln't use Gosub app, but I can't find ael keyword, that will be

Re: [asterisk-users] AEL and swap from macros to contexts

2008-10-06 Thread Atis Lezdins
On Mon, Oct 6, 2008 at 5:21 PM, Pavel Jezek [EMAIL PROTECTED] wrote: Hi, according to discussion on asterisk IRC, where people said, that macros will be depracated, I tried to migrate from macros to contexts and Gosub but if I try to use gosub in extensions.ael, ael compiler complains, that I

Re: [asterisk-users] AEL and swap from macros to contexts

2008-10-06 Thread Pavel Jezek
Atis Lezdins wrote: On Mon, Oct 6, 2008 at 5:21 PM, Pavel Jezek [EMAIL PROTECTED] wrote: Hi, according to discussion on asterisk IRC, where people said, that macros will be depracated, I tried to migrate from macros to contexts and Gosub but if I try to use gosub in extensions.ael, ael

  1   2   >