Ticket #3291: generate_configurations_fop.patch
| File generate_configurations_fop.patch, 1.1 kB (added by Nick_Lewis, 3 years ago) |
|---|
-
old/libfreepbx.confgen.php
old new 300 300 fclose($queues_conf_fh); 301 301 } 302 302 303 function generate_configurations_fop() { 304 include("retrieve_op_conf_from_mysql.php"); 305 } 306 303 307 ?> -
old/retrieve_conf
old new 720 720 // script to write op_server.cfg file from mysql 721 721 // 722 722 if(!$amp_conf['FOPDISABLE']) { 723 $script = $amp_conf['AMPBIN'].'/retrieve_op_conf_from_mysql.pl'; 724 if (is_executable($script)) { 725 $script .= ' '.$amportalconf.' '.rtrim($asterisk_conf['astetcdir'],DIRECTORY_SEPARATOR); 726 exec($script, $output, $ret); 727 if ($ret) { 728 error(sprintf(_("retrieve_op_conf_from_mysql.pl returned with an error code %s"),$ret)); 729 } 730 } else { 731 error(_("retrieve_op_conf_from_mysql.pl does not exist or is not executable")); 732 } 723 generate_configurations_fop(); 733 724 } 734 725 // generate configuration files 735 726 //
