bug fix :

- Set hints all device
  - BLF Update
  - phonePersonalization
This commit is contained in:
PhantomVl 2018-12-28 16:01:20 +03:00
parent 6794069d3b
commit 5bd0d2b124
9 changed files with 103 additions and 25 deletions

View file

@ -129,7 +129,8 @@ class xmlinterface {
$var_xml_general_fields = array('authenticationURL' => 'dev_authenticationURL', 'informationURL' => 'dev_informationURL', 'messagesURL' => 'dev_messagesURL',
'servicesURL' => 'dev_servicesURL', 'directoryURL' => 'dev_directoryURL', 'proxyServerURL' => 'dev_proxyServerURL', 'idleTimeout' => 'dev_idleTimeout',
'idleURL' => 'dev_idleURL', 'sshUserId' => 'dev_sshUserId', 'sshPassword' => 'dev_sshPassword', 'deviceProtocol' => 'dev_deviceProtocol'
'idleURL' => 'dev_idleURL', 'sshUserId' => 'dev_sshUserId', 'sshPassword' => 'dev_sshPassword', 'deviceProtocol' => 'dev_deviceProtocol',
'phonePersonalization' => 'phonePersonalization'
);
$var_xml_general_vars = array('capfAuthMode' => 'null', 'capfList' => 'null', 'mobility' => 'null',
'phoneServices' => 'null', 'certHash' => 'null',
@ -293,6 +294,12 @@ class xmlinterface {
// $this->appendSimpleXmlNode($xml_work , $xnode_obj);
}
break;
case 'commonProfile':
$xml_node->phonePassword = $data_values['dev_sshPassword'];
$xml_node->backgroundImageAccess = $data_values['backgroundImageAccess'];
$xml_node->callLogBlfEnabled = $data_values['callLogBlfEnabled'];
break;
case 'userLocale':
case 'networkLocaleInfo':
case 'networkLocale':

View file

@ -66,6 +66,7 @@
<uid>64</uid>
<version>4.0(1)</version>
</networkLocaleInfo>
<phonePersonalization>1</phonePersonalization>
<deviceSecurityMode>0</deviceSecurityMode>
<idleTimeout>3600</idleTimeout>
<authenticationURL>http://x.x.x.x/cisco_menu/authentication.php</authenticationURL>

View file

@ -57,6 +57,7 @@
<uid>64</uid>
<version>4.0(1)</version>
</networkLocaleInfo>
<phonePersonalization>1</phonePersonalization>
<deviceSecurityMode>0</deviceSecurityMode>
<idleTimeout>3600</idleTimeout>
<authenticationURL>http://x.x.x.x/cisco_menu/authentication.php</authenticationURL>

View file

@ -68,6 +68,12 @@
<uid>64</uid>
<version>4.0(1)</version>
</networkLocaleInfo>
<commonProfile>
<phonePassword/>
<backgroundImageAccess>true</backgroundImageAccess>
<callLogBlfEnabled>3</callLogBlfEnabled>
</commonProfile>
<phonePersonalization>1</phonePersonalization>
<deviceSecurityMode>0</deviceSecurityMode>
<idleTimeout>3600</idleTimeout>
<authenticationURL>http://x.x.x.x/cisco_menu/authentication.php</authenticationURL>

View file

@ -857,12 +857,28 @@ and open the template in the editor. Base Version before all crash :-)
</item>
<item type="IS" id="11" seq="98">
<name>backgroundImageAccess</name>
<label>Background Image</label>
<default>off</default>
<button value="on">Enabled</button>
<button value="off">Disabled</button>
<label>Allow change Background Image</label>
<default>true</default>
<button value="true">Enabled</button>
<button value="false">Disabled</button>
<help>I'm guessing on this one, but on some devices, the background image on the display can be modified at the device. I think this is the thing that allows that to take.</help>
</item>
<item type="IS" id="11" seq="98">
<name>phonePersonalization</name>
<label>Allow push background from server </label>
<default>0</default>
<button value="1">Enabled</button>
<button value="0">Disabled</button>
<help>Phone personalization needs to be set to allow the server to push background or ringtones to the phone in the SEPXXXXXXXXXX.cnf.xml of each phone:</help>
</item>
<item type="IS" id="11" seq="98">
<name>callLogBlfEnabled</name>
<label>Allow BLF in Phone Directory</label>
<default>2</default>
<button value="3">Enabled</button>
<button value="2">Disabled</button>
<help>Which does show numbers you can redial, but also include their current device state, so you know when they are currently busy. Note that the other phonebook entries will now also monitor the remove device state and show the current device state</help>
</item>
</page_group>
<page_group name="sccp_extpath_config">

View file

@ -867,12 +867,28 @@ and open the template in the editor. Base Version before all crash :-)
</item>
<item type="IS" id="11" seq="98">
<name>backgroundImageAccess</name>
<label>Background Image</label>
<default>off</default>
<button value="on">Enabled</button>
<button value="off">Disabled</button>
<label>Allow change Background Image</label>
<default>true</default>
<button value="true">Enabled</button>
<button value="false">Disabled</button>
<help>I'm guessing on this one, but on some devices, the background image on the display can be modified at the device. I think this is the thing that allows that to take.</help>
</item>
<item type="IS" id="11" seq="98">
<name>phonePersonalization</name>
<label>Allow push background from server </label>
<default>0</default>
<button value="1">Enabled</button>
<button value="0">Disabled</button>
<help>Phone personalization needs to be set to allow the server to push background or ringtones to the phone in the SEPXXXXXXXXXX.cnf.xml of each phone:</help>
</item>
<item type="IS" id="11" seq="98">
<name>callLogBlfEnabled</name>
<label>Allow BLF in Phone Directory</label>
<default>2</default>
<button value="3">Enabled</button>
<button value="2">Disabled</button>
<help>Which does show numbers you can redial, but also include their current device state, so you know when they are currently busy. Note that the other phonebook entries will now also monitor the remove device state and show the current device state</help>
</item>
<item type="SLM" id="6">
<label>Music On Hold Class</label>
<name>musicclass</name>

View file

@ -886,12 +886,28 @@ and open the template in the editor. Base Version before all crash :-)
</item>
<item type="IS" id="11" seq="98">
<name>backgroundImageAccess</name>
<label>Background Image</label>
<default>off</default>
<button value="on">Enabled</button>
<button value="off">Disabled</button>
<label>Allow change Background Image</label>
<default>true</default>
<button value="true">Enabled</button>
<button value="false">Disabled</button>
<help>I'm guessing on this one, but on some devices, the background image on the display can be modified at the device. I think this is the thing that allows that to take.</help>
</item>
<item type="IS" id="11" seq="98">
<name>phonePersonalization</name>
<label>Allow push background from server </label>
<default>0</default>
<button value="1">Enabled</button>
<button value="0">Disabled</button>
<help>Phone personalization needs to be set to allow the server to push background or ringtones to the phone in the SEPXXXXXXXXXX.cnf.xml of each phone:</help>
</item>
<item type="IS" id="11" seq="98">
<name>callLogBlfEnabled</name>
<label>Allow BLF in Phone Directory</label>
<default>2</default>
<button value="3">Enabled</button>
<button value="2">Disabled</button>
<help>Which does show numbers you can redial, but also include their current device state, so you know when they are currently busy. Note that the other phonebook entries will now also monitor the remove device state and show the current device state</help>
</item>
</page_group>
<page_group name="sccp_extpath_config">

View file

@ -176,12 +176,14 @@ and open the template in the editor. Base Version before all crash :-)
<button value="Ignore">Ignore</button>
<help></help>
</item>
<item type="IS" id="11" seq="98">
<name>callLogBlfEnabled</name>
<label>Allow BLF in Phone Directory</label>
<default>2</default>
<button value="3">Enabled</button>
<button value="2">Disabled</button>
<help>Which does show numbers you can redial, but also include their current device state, so you know when they are currently busy. Note that the other phonebook entries will now also monitor the remove device state and show the current device state</help>
</item>
@ -534,12 +536,20 @@ and open the template in the editor. Base Version before all crash :-)
</item>
<item type="IS" id="11" seq="98">
<name>backgroundImageAccess</name>
<label>Background Image</label>
<default>off</default>
<button value="on">Enabled</button>
<button value="off">Disabled</button>
<label>Allow change Background Image</label>
<default>true</default>
<button value="true">Enabled</button>
<button value="false">Disabled</button>
<help>I'm guessing on this one, but on some devices, the background image on the display can be modified at the device. I think this is the thing that allows that to take.</help>
</item>
<item type="IS" id="11" seq="98">
<name>phonePersonalization</name>
<label>Allow push background from server </label>
<default>0</default>
<button value="1">Enabled</button>
<button value="0">Disabled</button>
<help>Phone personalization needs to be set to allow the server to push background or ringtones to the phone in the SEPXXXXXXXXXX.cnf.xml of each phone:</help>
</item>
<item type="SLM" id="6">
<label>Music On Hold Class</label>
<name>musicclass</name>

View file

@ -116,8 +116,13 @@ if (!empty($_REQUEST['new_id'])) {
$defaul_btn = strtok($data_i,'@');
$def_hint = 'checked';
if ($defaul_btn == $defaul_opt[0]) {
foreach ($lines_list as $data){
if ($data['name']==$defaul_btn) {
$show_form_mode = 'line';
$defaul_tv = 'monitor';
break;
}
}
} else {
$defaul_btn = $data_i;
}