Initial add of feature mobility user table:
- Add extra user fields and sccp_config entries - Create new buttonconfig table - Add PhoneCodepages like cp1251
This commit is contained in:
parent
c2b97fe3ee
commit
f686274189
|
@ -514,12 +514,13 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
"buttons" => array(
|
||||
"name" => _("Device Buttons"),
|
||||
"page" => 'views/form.buttons.php'
|
||||
),
|
||||
"sccpcodec" => array(
|
||||
"name" => _("Device SCCP Codec"),
|
||||
"page" => 'views/server.codec.php'
|
||||
),
|
||||
);
|
||||
));
|
||||
if ($this->sccpvalues['sccp_compatible']['data'] < '433') {
|
||||
$this->pagedata["sccpcodec"] = array(
|
||||
"name" => _("Device SCCP Codec"),
|
||||
"page" => 'views/server.codec.php'
|
||||
);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
|
@ -1124,6 +1125,15 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
};
|
||||
$value = implode(";", $save_codec);
|
||||
break;
|
||||
case 'phonecodepage':
|
||||
$value = 'null';
|
||||
if (!empty($get_settings[$hdr_prefix . 'devlang'])) {
|
||||
$lang_data = $this->extconfigs->getextConfig('sccp_lang',$get_settings[$hdr_prefix . 'devlang']);
|
||||
if (!empty($lang_data)) {
|
||||
$value = $lang_data['codepage'];
|
||||
}
|
||||
}
|
||||
break;
|
||||
case '_hwlang':
|
||||
if (empty($get_settings[$hdr_prefix . 'netlang']) || empty($get_settings[$hdr_prefix . 'devlang'])) {
|
||||
$value = 'null';
|
||||
|
@ -1197,7 +1207,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
if ($hw_id == 'new') {
|
||||
$this->srvinterface->sccp_core_commands(array('cmd' => 'reset_phone', 'name' => $name_dev));
|
||||
} else {
|
||||
$this->srvinterface->sccp_core_commands(array('cmd' => 'reload_phone', 'name' => $name_dev));
|
||||
$this->srvinterface->sccp_core_commands(array('cmd' => 'restart_phone', 'name' => $name_dev));
|
||||
}
|
||||
|
||||
return $save_settings;
|
||||
|
@ -1966,8 +1976,13 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
case "permit":
|
||||
$this->sccp_conf_init['general'][$key] = explode(';', $value['data']);
|
||||
break;
|
||||
case "netlang": // Remove Key
|
||||
case "devlang":
|
||||
$lang_data = $this->extconfigs->getextConfig('sccp_lang',$value['data']);
|
||||
if (!empty($lang_data)) {
|
||||
$this->sccp_conf_init['general']['phonecodepage'] = $lang_data['codepage'];
|
||||
}
|
||||
break;
|
||||
case "netlang": // Remove Key
|
||||
case "tftp_path":
|
||||
case "sccp_compatible":
|
||||
break;
|
||||
|
|
|
@ -43,6 +43,7 @@ class srvinterface {
|
|||
'get_hints' => array('cmd' => "core show hints", 'param' => ''),
|
||||
'sccp_reload' => array('cmd' => "sccp reload force", 'param' => ''),
|
||||
'reset_phone' => array('cmd' => "sccp reset ", 'param' => 'name'), // Жесткая перезагрузка
|
||||
'restart_phone' => array('cmd' => "sccp restart ", 'param' => 'name'),
|
||||
'reload_phone' => array('cmd' => "sccp reload device ", 'param' => 'name'),
|
||||
'reset_token' => array('cmd' => "sccp tokenack ", 'param' => 'name'),
|
||||
'get_realtime_status' => array('cmd' => "realtime mysql status", 'param' => ''),
|
||||
|
|
|
@ -343,6 +343,9 @@ class xmlinterface {
|
|||
if (isset($lang_info[$lang])) {
|
||||
$xml_node->name = $lang_info[$lang]['locale'];
|
||||
$xml_node->langCode = $lang_info[$lang]['code'];
|
||||
if ($key == 'userLocale') {
|
||||
$xml_node->winCharSet = $lang_info[$lang]['codepage'];
|
||||
}
|
||||
$this->replaceSimpleXmlNode($xml_work->$key, $xml_node);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -159,7 +159,7 @@ function Get_DB_config($sccp_compatible) {
|
|||
'hwlang' => array('rename' => "_hwlang"),
|
||||
'_hwlang' => array('create' => 'varchar(12) NULL DEFAULT NULL'),
|
||||
'_loginname' => array('create' => 'varchar(20) NULL DEFAULT NULL AFTER `_hwlang`'),
|
||||
'_profileid' => array('create' => 'varchar(20) NULL DEFAULT NULL AFTER `_loginname`'),
|
||||
'_profileid' => array('create' => "INT(11) NOT NULL DEFAULT '0' AFTER `_loginname`"),
|
||||
|
||||
'useRedialMenu' => array('create' => "VARCHAR(5) NULL DEFAULT 'no' AFTER `_profileid`"),
|
||||
//'dtmfmode' => array('create' => "VARCHAR(10) default 'outofband'", 'modify' => "VARCHAR(10)", 'def_modify'=> 'outofband'),
|
||||
|
@ -241,7 +241,7 @@ function Get_DB_config($sccp_compatible) {
|
|||
'hwlang' => array('rename' => "_hwlang"),
|
||||
'_hwlang' => array('create' => 'varchar(12) NULL DEFAULT NULL'),
|
||||
'_loginname' => array('create' => 'varchar(20) NULL DEFAULT NULL AFTER `_hwlang`'),
|
||||
'_profileid' => array('create' => 'varchar(20) NULL DEFAULT NULL AFTER `_loginname`'),
|
||||
'_profileid' => array('create' => "INT(11) NOT NULL DEFAULT '0' AFTER `_loginname`"),
|
||||
|
||||
'useRedialMenu' => array('create' => "VARCHAR(5) NULL DEFAULT 'no' AFTER `_profileid`"),
|
||||
//'dtmfmode' => array('create' => "VARCHAR(10) default 'outofband'", 'modify' => "VARCHAR(10)", 'def_modify'=> 'outofband'),
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<changelog>
|
||||
* Version 13.0.0.1 * - Alfa Release tested on freepbx v.13.0.192.16, v.14.0.1.5
|
||||
* Version 13.0.0.2 * - Release tested
|
||||
* Version 14.0.0.1 * - Alfa Release new DB structure Add User mobility
|
||||
</changelog>
|
||||
<location></location>
|
||||
<supported>
|
||||
|
|
Loading…
Reference in a new issue