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? thanks klaus
2009/1/8 Klaus Darilion <klaus.mailinglists at pernau.at>> 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?for syntax edition (ie ael.vim 0.2), this question seems to matter.> > > > > thanks > klaus > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090108/0ea5f1e8/attachment.htm
> -----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
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