Re: [Asterisk-Users] Using "#include" on zaptel.conf
On Fri, Jun 09, 2006 at 05:55:20PM -0300, Denis Galvão - iSolve wrote: > But the zaptel.conf is an Asterisk file? No. It is the configuration for the zaptel kernel modules. It is applied by running ztcfg. Don't confuse /etc/asterisk/zapata.conf with /etc/zaptel.conf . -- Tzafrir Cohen sip:[EMAIL PROTECTED] icq#16849755 iax:[EMAIL PROTECTED] +972-50-7952406 [EMAIL PROTECTED] http://www.xorcom.com ___ --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
Re: [Asterisk-Users] Using "#include" on zaptel.conf
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:[EMAIL PROTECTED] icq#16849755 iax:[EMAIL PROTECTED] +972-50-7952406 [EMAIL PROTECTED] http://www.xorcom.com ___ --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
Re: [Asterisk-Users] Using "#include" on zaptel.conf
- Denis Galvão - iSolve <[EMAIL PROTECTED]> wrote: > But the zaptel.conf is an Asterisk file? > > Thanks for your reply and you're right about testing before. :) Of course you are right... sorry. No, zaptel.conf (read by ztcfg) does not support #include. I thought you were asking about zapata.conf and responded incorrectly. -- Kevin P. Fleming Senior Software Engineer Digium, Inc. ___ --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
Re: [Asterisk-Users] Using "#include" on zaptel.conf
But the zaptel.conf is an Asterisk file? Thanks for your reply and you're right about testing before. :) D e n i s G a l v ã o iSolve - Solve Is Our Business Av. Candido de Abreu, 526 1610A CEP: 80530-000 - Curitiba - PR +55 41 3252-2977 r 101 http://www.isolve.com.br On 09 de jun de 2006, at 14:32, Kevin P. Fleming wrote: - Denis Galvão - iSolve <[EMAIL PROTECTED]> wrote: Is this possible to use an include parameter on zaptel.conf file? All Asterisk .conf files support #include, it's handled at the file- reading level. It would have taken less time to just try it, though, and you'd already have your answer :-) -- Kevin P. Fleming Senior Software Engineer Digium, Inc. ___ --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 ___ --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
Re: [Asterisk-Users] Using "#include" on zaptel.conf
- Denis Galvão - iSolve <[EMAIL PROTECTED]> wrote: > Is this possible to use an include parameter on zaptel.conf file? All Asterisk .conf files support #include, it's handled at the file-reading level. It would have taken less time to just try it, though, and you'd already have your answer :-) -- Kevin P. Fleming Senior Software Engineer Digium, Inc. ___ --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
[Asterisk-Users] Using "#include" on zaptel.conf
Hi all. Is this possible to use an include parameter on zaptel.conf file? 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). Thanks, Denis Galvão ___ --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