[Asterisk-Users] From Database, PHP-Webinterface -> TO flatfileconfiguration

Dustin Wildes asterisk-users at vecsector.com
Wed Oct 5 06:29:42 MST 2005


Hey Arne!
My project 'PhoneCALL' http://www.vecsector.com/phonecall does pretty 
much the same thing as you are describing - stores the configs in mysql 
& then submits the changes to flat files & reloads asterisk on 
completion. For me & my clients - there hasn't been any noticeable 
difference, as we used mysql/php for CDR anyway. Also - the flat-files 
are loaded in memory once Asterisk starts, so it's not like it's 
constantly hammering the mysql database for info.

Go for it! :-)

--Dustin


Arne Morten Johansen wrote:

>Hi.
>
>I've started working on a PHP-project that generates the configuration
>files i need based on what's in my MYSQL database. I can add, delete and
>edit users from the web. I can set up exactly the dialplan i need by
>arranging the users in a firms and groups if needed. I've also set up a
>java servlet so that i can get asterisk to reload by pushing a button
>from the web-interface. The php-scripts communicates with ip-sockets. 
>
>So what's my question? I'm just wondering if this is a good idea. Any
>comments? I've looked into the mysql support in the addons but I find it
>hard to do and complicated. For me it's easier to write the config-files
>from a php-script. But what about performance? Any big difference here?
>What do you think is the pros and cons of a setup like this?
>
>Regards,
>Arne Morten
>
>_______________________________________________
>--Bandwidth and Colocation sponsored by Easynews.com --
>
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>  
>




More information about the asterisk-users mailing list