On Thu, Nov 06, 2008 at 12:57:15PM +0200, Tzafrir Cohen wrote: > Hi > > I'm lately bothered with the need to provide a set of Asterisk > configuration files in a package that will be good for a wide range of > Asterisk users. > > Asterisk configuration files support #include and a number of other > interesting tricks, as mentioned in > http://svn.digium.com/svn/asterisk/branches/1.4/doc/configuration.txt [0].
Where can we find tools to parse Asterisk configuration files? Asterisk does not provide any library or utility to read configuration files. The asterisk-gui uses Asterisk itself to both read and write configuration files. The FreeIRIS project uses a set of perl module, that are also available in CPAN, as Asterisk::config http://search.cpan.org/dist/Asterisk-config/ http://www.freeiris.org/ (Never tried using them) Next file to look at is modules.conf . modules.conf is one of those files with a "single section" (or maybe two or three, but many entries in that section). Mostly the order in modules.conf doesn't count. However I beleive that in some specific cases the order of entries there does count. In addition, of of the entries there are of the same two keys ('load' and 'unload'). Hence it's imporssible to override an earlier "assignment" later. This makes module.conf very unmodular (pun not intended) by nature. The problem with modules.conf is that a mistake in it can easily get Asterisk to either fail to load or behave very strange. Can someone describe to me a real-life situation where the order of directives in modules.conf matters? -- Tzafrir Cohen icq#16849755 jabber:[EMAIL PROTECTED] +972-50-7952406 mailto:[EMAIL PROTECTED] http://www.xorcom.com iax:[EMAIL PROTECTED]/tzafrir _______________________________________________ -- 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
