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  
    300300  fclose($queues_conf_fh); 
    301301} 
    302302 
     303function generate_configurations_fop() { 
     304    include("retrieve_op_conf_from_mysql.php"); 
     305} 
     306 
    303307?> 
  • old/retrieve_conf

    old new  
    720720// script to write op_server.cfg file from mysql  
    721721// 
    722722if(!$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(); 
    733724} 
    734725// generate configuration files 
    735726//