Remove unused cases in Save Device
These Fields do not exist in sccpdevice
This commit is contained in:
parent
8c4b0ce240
commit
5e5cf3ffda
|
@ -565,8 +565,10 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveSccpDevice($get_settings, $validateonly = false) {
|
function saveSccpDevice($get_settings, $validateonly = false) {
|
||||||
|
dbug('Settings', $get_settings);
|
||||||
$hdr_prefix = 'sccp_hw_';
|
$hdr_prefix = 'sccp_hw_';
|
||||||
$hdr_arprefix = 'sccp_hw-ar_';
|
$hdr_arprefix = 'sccp_hw-ar_';
|
||||||
|
$hdr_vendPrefix = 'sccp_hw_vendor';
|
||||||
|
|
||||||
$save_buttons = array();
|
$save_buttons = array();
|
||||||
$save_settings = array();
|
$save_settings = array();
|
||||||
|
@ -603,22 +605,6 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
$name_dev = $value;
|
$name_dev = $value;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'disallow':
|
|
||||||
$value = $get_settings['sccp_disallow'];
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'allow':
|
|
||||||
$i = 0;
|
|
||||||
if (!empty($get_settings['voicecodecs'])) {
|
|
||||||
foreach ($get_settings['voicecodecs'] as $keycodeс => $valcodeс) {
|
|
||||||
$save_codec[$i] = $keycodeс;
|
|
||||||
$i++;
|
|
||||||
};
|
|
||||||
$value = implode(";", $save_codec);
|
|
||||||
} else {
|
|
||||||
$value = 'all'; // Bug If not System Codecs
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'phonecodepage':
|
case 'phonecodepage':
|
||||||
$value = 'null';
|
$value = 'null';
|
||||||
if (!empty($get_settings[$hdr_prefix . 'devlang'])) {
|
if (!empty($get_settings[$hdr_prefix . 'devlang'])) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<module>
|
<module>
|
||||||
<rawname>sccp_manager</rawname>
|
<rawname>sccp_manager</rawname>
|
||||||
<name>SCCP Manager</name>
|
<name>SCCP Manager</name>
|
||||||
<version>14.2.0.10</version>
|
<version>14.3.0.0</version>
|
||||||
<type>setup</type>
|
<type>setup</type>
|
||||||
<category>SCCP Connectivity</category>
|
<category>SCCP Connectivity</category>
|
||||||
<publisher>Steve Lad, Alex GP</publisher>
|
<publisher>Steve Lad, Alex GP</publisher>
|
||||||
|
@ -23,6 +23,7 @@
|
||||||
* Version 14.2.0.8 * - Fix uninstaller and create backup
|
* Version 14.2.0.8 * - Fix uninstaller and create backup
|
||||||
* Version 14.2.0.9 * - Bug Fix - incorrect response class for Reset Token Device
|
* Version 14.2.0.9 * - Bug Fix - incorrect response class for Reset Token Device
|
||||||
* Version 14.2.0.10 * - Bug Fix - line not assigned on device creation
|
* Version 14.2.0.10 * - Bug Fix - line not assigned on device creation
|
||||||
|
* Version 14.3.0.0 * - New Minor Version - Change DB and add new settings
|
||||||
</changelog>
|
</changelog>
|
||||||
<location>https://github.com/chan-sccp/sccp_manager</location>
|
<location>https://github.com/chan-sccp/sccp_manager</location>
|
||||||
<supported>
|
<supported>
|
||||||
|
|
Loading…
Reference in a new issue