Ii -----Original Message----- From: Octavio Ruiz <[email protected]> Sender: [email protected] Date: Wed, 20 Mar 2013 16:21:02 To: Asterisk Users Mailing List - Non-Commercial Discussion<[email protected]> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion <[email protected]> Subject: Re: [asterisk-users] Asterisk 11 and stdexten written in AEL invoked by pbx_config
I wonder if anyone in the list find useful to write stdexten in AEL instead of in extensions.conf syntax. I do, but probably I'm just alone. On Wed, Oct 31, 2012 at 11:44 AM, Octavio Ruiz <[email protected]> wrote: > Almost two years ago, a change between how AEL code is built into > Asterisk dialplan between minor versions made clear the need to > provide a sane entry point into AEL subroutines and that's how > AELSub() born. > > With Asterisk 11 release, they way [stdexten] at extensions.conf is > invoked changed from Macro to Gosub using the 'missing context > feature' and this caused that any stdexten written in anything else > but extensions.conf (AEL, LUA, etc, being these not able to define an > arbitrary priority) will not work. > > The only way to workaround this is to fallback to Macro() and write > macro-contexts in AEL with the stack limit implications of them so I'm > proposing to add to asterisk.conf configuration the ability to invoke > stdexten using AELSub() so stdexten can be again be written in AEL > mantaining real backward compatiblity as it did the fact that you are > able to fallback to Macro. > > ;stdexten = gosub ; How to invoke the extensions.conf stdexten. > ; macro - Invoke the stdexten using a macro as > ; done by legacy Asterisk versions. > ; aelsub - Invoke the stdexten sutbroutine using AELSub > ; when stdexten is defined in AEL. > ; gosub - Invoke the stdexten using a gosub as > ; documented in extensions.conf.sample. > > I've already started this conversation on the development lists, you > can follow up it at: > > http://lists.digium.com/pipermail/asterisk-dev/2012-August/056666.html > > and there is a working patch submited to JIRA here: > > https://issues.asterisk.org/jira/browse/ASTERISK-20355 > > I would like to read your comments. > > Best, -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
