[Asterisk-Users] Config File Storage
tim panton
tpanton at attglobal.net
Wed Jan 25 03:38:14 MST 2006
On 24 Jan 2006, at 01:42, Douglas Garstang wrote:
> I'm trying to think of a way to store/represent the Asterisk .conf
> files. One method is to store them in MySQL in some format, and
> then write some scripts to query MySQL and generate the conf files
> before doing a reload.
>
> MySQL is pretty heavy handed though. I'm looking for something a
> bit more lightweight, maybe.... some sort of XML based database for
> Linux, where the config files could be stored in XML format?
> Doesn't seem like it would be too hard to represent them this way.
Yeah, we use XML as a DB-lite in some of our websites (not for
Asterisk config). It is cute but
you have to watch out if you update often or concurrently. Only a
single process can update an
file xml at a time. What's more you have to rewrite the whole file,
which can be expensive.
>
> Trying to find a way to store them so they can be accessed easier
> from a web interface.
If you plan to do on-demand updates via this interface
you are probably going to find it easier to use a 'real' database,
ideally one with
transactions, rollback, views etc.... but that is a whole other
argument :-)
>
> Thanks, Doug
>
http://www.westhawk.co.uk/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060125/86608378/attachment.htm
More information about the asterisk-users
mailing list