diff --git a/Sccp_manager.class.php b/Sccp_manager.class.php index e338ab9..0a4b6e9 100644 --- a/Sccp_manager.class.php +++ b/Sccp_manager.class.php @@ -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); } diff --git a/views/server.setting.php b/views/server.setting.php index 61efd64..577a2d9 100644 --- a/views/server.setting.php +++ b/views/server.setting.php @@ -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');