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. Trying to find a way to store them so they can be accessed easier from a web interface. Thanks, Doug
At 08:42 PM 1/23/2006, Douglas Garstang wrote:>Content-Class: urn:content-classes:message >Content-Type: text/plain; > charset="UTF-8" > >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.Asterisk at Home?>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. > >Trying to find a way to store them so they can be accessed easier from a >web interface. > >Thanks, Doug > > >_______________________________________________ >--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-------------------------------------- Jeff Herring / jeffh@sldsi.com Seacoast Laboratory Data Systems, Inc. Voice: 603 431 4114 x14 FAX: 603 431 2112 -------------------------------------- CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files or previous e-mail messages attached to it contain confidential and/or privileged information meant for the listed recipient(s) only. You many not distribute or share this correspondence without written authorization from the above author. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify me by reply e-mail and destroy the original transmission and its attachments without saving them in any manner.
Haven't used it, but I imagine it doesn't have anywhere near the flexibility I'm looking for. -----Original Message----- From: Jeff Herring [mailto:jeffh@sldsi.com] Sent: Mon 1/23/2006 6:59 PM To: Asterisk Users Mailing List - Non-Commercial Discussion; Asterisk Users Mailing List - Non-Commercial Discussion; Asterisk Users Mailing List - Non-Commercial Discussion Cc: Subject: Re: [Asterisk-Users] Config File Storage At 08:42 PM 1/23/2006, Douglas Garstang wrote: >Content-Class: urn:content-classes:message >Content-Type: text/plain; > charset="UTF-8" > >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. Asterisk at Home? >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. > >Trying to find a way to store them so they can be accessed easier from a >web interface. > >Thanks, Doug > > >_______________________________________________ >--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 -------------------------------------- Jeff Herring / jeffh@sldsi.com Seacoast Laboratory Data Systems, Inc. Voice: 603 431 4114 x14 FAX: 603 431 2112 -------------------------------------- CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files or previous e-mail messages attached to it contain confidential and/or privileged information meant for the listed recipient(s) only. You many not distribute or share this correspondence without written authorization from the above author. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify me by reply e-mail and destroy the original transmission and its attachments without saving them in any manner. _______________________________________________ --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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 6470 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060123/251f61be/attachment.bin
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