Begin resample Sccp_manager
Clear sccp.conf
This commit is contained in:
parent
cce4683b52
commit
48ff0dc56c
|
@ -39,6 +39,7 @@
|
||||||
* + secondary_dialtone_tone = 0x22 line config
|
* + secondary_dialtone_tone = 0x22 line config
|
||||||
* - support kv-store ?????
|
* - support kv-store ?????
|
||||||
* + Shared Line
|
* + Shared Line
|
||||||
|
* - bug Soft key set (empty keysets )
|
||||||
* - bug Fix ...(K no w bug? no fix)
|
* - bug Fix ...(K no w bug? no fix)
|
||||||
* - restore default Value on page
|
* - restore default Value on page
|
||||||
* - restore default Value on sccp.class
|
* - 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);
|
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);
|
// $this->sccp_conf_init = @parse_ini_file($this->sccppath["sccp_conf"], true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* and open the template in the editor.
|
* and open the template in the editor.
|
||||||
*/
|
*/
|
||||||
// vim: set ai ts=4 sw=4 ft=phtml:
|
// 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->sccpvalues);
|
||||||
// print_r($this->srvinterface->getCoreSCCPVersion());
|
// print_r($this->srvinterface->getCoreSCCPVersion());
|
||||||
// $lang_arr = $this->extconfigs->getextConfig('sccp_lang','sk_SK');
|
// $lang_arr = $this->extconfigs->getextConfig('sccp_lang','sk_SK');
|
||||||
|
|
Loading…
Reference in a new issue