[asterisk-users] Parsing Asterisk's .conf files from Perl, Java or PHP file

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri May 22 19:39:06 CDT 2009


On Fri, May 22, 2009 at 09:23:32AM +0200, Olivier wrote:
> Hi,
> 
> To a large extend, Asterisk's /etc/asterisk/*.conf configuration files
> conform to a format such as:
> 
> [section1]
> key1=value1
> key2=value2
> 
> [section2]
> key1=value1
> key2=value2
> ...
> 
> To increase coherence when running custom-made application in Perl, Java,
> PHP, ...) and Asterisk on the same platform, I'm wondering if could extend a
> bit Asterisk's config files instead of duplicating data in an independant
> config file.

Asterisk::config seems to work nicely. It does not support all the
features but the basics you're interested in are supported.

  http://search.cpan.org/~hoowa/Asterisk-config-0.96/

(Or just search CPAN for "asterisk" / "asterisk::config" )

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list