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 explicit Gosub() call? I use it 
> like this:
> 
>    ...
>    Gosub(blacklist,${exten},1);
>    ...
> 
> context blacklist {
>    _+43900! => Hangup();
>    _+43910! => Hangup();
>    _+X. => return;
> 
> }

In 1.6, AEL macro() is implemented using Gosub(), so you can use it as a
direct replacement. This is listed in the CHANGES file.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: [email protected]
Check us out at www.digium.com & www.asterisk.org

-- 
_____________________________________________________________________
-- 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

Reply via email to