[asterisk-users] AEL #include file
Steve Murphy
murf at parsetree.com
Fri Mar 9 13:41:51 MST 2007
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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3239 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070309/09b39058/smime.bin
More information about the asterisk-users
mailing list