On Fri, 2007-03-09 at 20:42 +0100, Philipp Kempgen wrote:
> Tzafrir Cohen wrote:
> 
> > On Fri, Mar 09, 2007 at 07:49:45PM +0100, Philipp Kempgen wrote:
> >> Hi,
> >>
> >> Does anyone know how to include a file in AEL using the
> >> #include "filename"
> >> syntax in .conf files?
> > 
> > Yes, it is supported.

Correct. It should assume that files are in /etc/asterisk, if that's
what the config file dir is. If they are somewhere, use absolute paths.

> > 
> > (Technically: It is not part of the ael syntax. #include and #exec are 
> > preprocessing done before the ael parser gets to read the text.)
> 
Well, mostly true; the #include directives are obeyed at the lexical
level of the AEL parser, which is underneath the parser. 

> Is there a way to include a .conf file from within .ael?
> Or the other way round?

No, there isn't. the extensions.conf format is entirely different than
the AEL format, and the AEL parser will not read in extensions.conf
formatted files. 

> 
> BTW: Never heard of #exec. What does that do? Shell exec?

The #exec option is available in the extensions.conf (and all config
files, for that matter). It basically will run the command provided, and
the output from it had better be the config file it wants to read in.

This is NOT available for AEL files (at the moment, at least).

> 
> 
> Regards,
>   Philipp
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to