How do I include a file (not a context) in AEL? #include "filename" returns an error. Thanks, Jay
> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > Jay Moore > Sent: Thursday, January 17, 2008 9:11 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [asterisk-users] AEL includes? > > How do I include a file (not a context) in AEL? #include "filename" > returns an error. > > Thanks, > Jay >That is exactly the syntax that you should be (and I am) using. I don't know why that wouldn't work, unless you're using an older version of Asterisk and are using fully-qualified paths. - Brad
Jay, What error? Jay Moore wrote:> How do I include a file (not a context) in AEL? #include "filename" > returns an error. > > Thanks, > Jay > > _______________________________________________ > -- 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 > >
On 1/17/08, Jay Moore <jaymoore at accu-com.com> wrote:> How do I include a file (not a context) in AEL? #include "filename" > returns an error.What's the error? For me this works: #include "extensions_db.ael"; #include "extensions_utils.ael"; #include "extensions_ivr.ael"; #include "extensions_globals.ael"; However i'm using #aelparse -d -n -w -q extensions.ael to dump ael into .conf format Regards, Atis -- Atis Lezdins VoIP Developer, IQ Labs Inc. atis at iq-labs.net Skype: atis.lezdins Cell Phone: +371 28806004 Work phone: +1 800 7502835