[asterisk-users] AEL and };

Klaus Darilion klaus.mailinglists at pernau.at
Thu Jan 8 11:25:46 CST 2009



Watkins, Bradley schrieb:
>  
> 
>> -----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.

sounds logical

thanks
klaus



More information about the asterisk-users mailing list