[asterisk-users] Reasons to use AEL

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Sat Jul 25 11:00:58 CDT 2009


On Saturday 25 July 2009 10:53:48 Scott Gifford wrote:
> Philipp Kempgen <philipp.kempgen at amooma.de> writes:
> > Miguel Molina schrieb:
> >> Philipp Kempgen escribió:
> >>> Use macros in AEL so you don't have to care about the underlying
> >>> implementation. :-) scnr
> >>
> >> Right now for every implementation I made, I didn't have the need to
> >> program in AEL, only plain extensions, some AMI and AGI. But well, it
> >> seems to have a lot of advantages. Please tell me some, I may take a
> >> look to it too see if it's worth spending the time to learn and get the
> >> best out of it.
> >
> > I'd say control structures (and proper indentation) are one of the
> > most important reasons to use AEL (conditionals: if .. else, switch
> > .. case, ..., loops: for, while) because they look so familiar.
> > Imagine nested "control structures" in extensions.conf with Goto(),
> > GotoIf(), While(), EndWhile(), ExitWhile(), ContinueWhile() and
> > priorities - such code is not what I call maintainable.
>
> Can you recommend a good tutorial or book that covers AEL?  I tend to
> use extensions.conf because most of the examples I come across use it,
> and it's covered by my first edition of the O'Reilly Asterisk book.
> Do later editions of the O'Reilly book cover AEL thoroughly?

Not as of this date.  We're looking at covering AEL in the 3rd edition,
though.

-- 
Tilghman & Teryl
with Peter, Cottontail, Midnight, Thumper, & Johnny (bunnies)
and Harry, BB, & George (dogs)



More information about the asterisk-users mailing list