[asterisk-users] Reasons to use AEL

Philipp Kempgen philipp.kempgen at amooma.de
Mon Jul 27 05:58:48 CDT 2009


Tzafrir Cohen schrieb:
> On Sat, Jul 25, 2009 at 01:03:27PM +0200, Philipp Kempgen wrote:
> 
>> == extensions.conf:
>> 
>> exten => 30,1,Set(x=5)
>> exten => 30,n,While($[${x} <= 9])
>> exten => 30,n,NoOp(x ist ${x})
>> exten => 30,n,ExecIf($[${x} > 5],ExitWhile)
>> exten => 30,n,Playback(beep)
>> exten => 30,n,Set(x=$[${x} + 1])
>> exten => 30,n,EndWhile()
>> exten => 30,n,NoOp(done)
>> 
>> == extensions.ael:
>> 
>> 30 => {
>>     x=0;
>>     while (${x} <= 9) {
>>         NoOp(x ist ${x});
>>         if (${x} > 5) {
>>             break;
>>         }
>>         Playback(beep);
>>         y=${x} + 1;
> 
> AEL is so easy that you managed to err with it :-p

oops :-)

>>     }
>>     NoOp(done);
>> }

    Philipp Kempgen
-- 
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP conference 2009 ->  http://www.amoocon.de
-- 



More information about the asterisk-users mailing list