[Asterisk-Users] Using "#include" on zaptel.conf
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Sat Jun 10 09:07:02 MST 2006
On Fri, Jun 09, 2006 at 02:18:19PM -0300, Denis Galvão - iSolve wrote:
> Hi all.
>
> Is this possible to use an include parameter on zaptel.conf file?
Technically, no.
>
> I mean, I want to have a bunch of files with zaptel configurations,
> each one with the configuration of one kind of board(TDM, analog, and
> so on).
Why exactly do you need this?
Alternatively, change yourr init scripts to run:
ztcfg -c <(cpp /etc/zaptel.conf)
Note: that syntax is bash-specific . In fact (at least on Debian) when
bash is run as /bin/sh it will not support that syntax.
There are a bunch of other simple preprocessors.
cpp won't support glob-including, and won't support "#exec", though.
But I believe that such an approach won't get you very far, as
zaptel.conf directives require knowing the exact span and channel
numbers.
--
Tzafrir Cohen sip:tzafrir at local.xorcom.com
icq#16849755 iax:tzafrir at local.xorcom.com
+972-50-7952406
tzafrir.cohen at xorcom.com http://www.xorcom.com
More information about the asterisk-users
mailing list