[asterisk-users] AEL and };

Watkins, Bradley Bradley.Watkins at compuware.com
Thu Jan 8 09:07:41 CST 2009


 

> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at 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 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 bracket?
> 

In the original implementation of AEL, it was required to have the
semicolon after closing a block.  In the new implementation ("AEL2"), it
is not required but is allowed for backward compatibility with dialplans
written for the earlier parser.

- Brad



More information about the asterisk-users mailing list