Begin resample Sccp_manager

Clear sccp.conf
This commit is contained in:
PhantomVl 2017-10-27 13:12:02 +03:00
parent cce4683b52
commit 48ff0dc56c
2 changed files with 13 additions and 2 deletions

View file

@ -39,6 +39,7 @@
* + secondary_dialtone_tone = 0x22 line config
* - support kv-store ?????
* + Shared Line
* - bug Soft key set (empty keysets )
* - bug Fix ...(K no w bug? no fix)
* - restore default Value on page
* - restore default Value on sccp.class
@ -1497,7 +1498,17 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
file_put_contents($this->sccppath["sccp_conf"], $sccpfile);
}
$this->sccp_conf_init = $this->cnf_read->getConfig('sccp.conf');
// $this->sccp_conf_init = $this->cnf_read->getConfig('sccp.conf');
$read_config = $this->cnf_read->getConfig('sccp.conf');
$this->sccp_conf_init['general'] = $read_config['general'];
foreach ($read_config as $key => $value) {
if (isset($read_config[$key]['type'])) { // copy soft key
if ($read_config[$key]['type'] == 'softkeyset') {
$this->sccp_conf_init[$key] = $read_config[$key];
}
}
}
// $this->sccp_conf_init = @parse_ini_file($this->sccppath["sccp_conf"], true);
}

View file

@ -5,7 +5,7 @@
* and open the template in the editor.
*/
// vim: set ai ts=4 sw=4 ft=phtml:
// print_r($this->sccpvalues['sccp_compatible']);
// print_r($this->sccp_conf_init);
// print_r($this->sccpvalues);
// print_r($this->srvinterface->getCoreSCCPVersion());
// $lang_arr = $this->extconfigs->getextConfig('sccp_lang','sk_SK');