Edgar Guadamuz
2007-Aug-22 07:22 UTC
[asterisk-users] How to re-read values from database in Trixbox
Hello guys, I'm using Trixbox and I have a PHP application that updates a value in the MySQL asterisk database as an interface to have a dynamic customizable IVR. After execute the UPDATE SQL query, the php application is supossed to reload asterisk or restart amportal in order to get the change working, but nor asterisk -rx reload nor amportal restart got the change working. So, the question is how can I re-read the new value from the database to be effective in asterisk?
Diego Iastrubni
2007-Aug-22 07:42 UTC
[asterisk-users] How to re-read values from database in Trixbox
You are updating the MySQL config, which is not propagated to the Asterisk config files. Only after you regenerate the configuratios, you can reload asterisk. Dirty hack: "need_reload" flag must be set to true. Real solution: retrieve_conf + "asterisk reload" On Wednesday 22 August 2007 10:22, Edgar Guadamuz wrote:> Hello guys, > > I'm using Trixbox and I have a PHP application that updates a value in > the MySQL asterisk database as an interface to have a dynamic > customizable IVR. > > After execute the UPDATE SQL query, the php application is supossed to > reload asterisk or restart amportal in order to get the change > working, but nor asterisk -rx reload nor amportal restart got the > change working. > > So, the question is how can I re-read the new value from the database > to be effective in asterisk?