From 5bd0d2b124417f50a7a6172e6521b8844a0a43d8 Mon Sep 17 00:00:00 2001 From: PhantomVl Date: Fri, 28 Dec 2018 16:01:20 +0300 Subject: [PATCH] bug fix : - Set hints all device - BLF Update - phonePersonalization --- Sccp_manager.inc/xmlinterface.class.php | 9 ++++++- conf/SEP0000000000.cnf.xml_791x_template | 1 + conf/SEP0000000000.cnf.xml_7940_template | 1 + conf/SEP0000000000.cnf.xml_796x_template | 6 +++++ conf/sccpgeneral.xml.v431 | 24 +++++++++++++++---- conf/sccpgeneral.xml.v433 | 24 +++++++++++++++---- conf/sccpsimple.xml.v431 | 24 +++++++++++++++---- conf/sccpsimple.xml.v433 | 30 ++++++++++++++++-------- views/form.buttons.php | 9 +++++-- 9 files changed, 103 insertions(+), 25 deletions(-) diff --git a/Sccp_manager.inc/xmlinterface.class.php b/Sccp_manager.inc/xmlinterface.class.php index 7a7e518..ce44a20 100644 --- a/Sccp_manager.inc/xmlinterface.class.php +++ b/Sccp_manager.inc/xmlinterface.class.php @@ -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': diff --git a/conf/SEP0000000000.cnf.xml_791x_template b/conf/SEP0000000000.cnf.xml_791x_template index f4ed507..cb3c862 100644 --- a/conf/SEP0000000000.cnf.xml_791x_template +++ b/conf/SEP0000000000.cnf.xml_791x_template @@ -66,6 +66,7 @@ 64 4.0(1) + 1 0 3600 http://x.x.x.x/cisco_menu/authentication.php diff --git a/conf/SEP0000000000.cnf.xml_7940_template b/conf/SEP0000000000.cnf.xml_7940_template index 604d5e0..f029dad 100644 --- a/conf/SEP0000000000.cnf.xml_7940_template +++ b/conf/SEP0000000000.cnf.xml_7940_template @@ -57,6 +57,7 @@ 64 4.0(1) + 1 0 3600 http://x.x.x.x/cisco_menu/authentication.php diff --git a/conf/SEP0000000000.cnf.xml_796x_template b/conf/SEP0000000000.cnf.xml_796x_template index e47b1ba..5970926 100644 --- a/conf/SEP0000000000.cnf.xml_796x_template +++ b/conf/SEP0000000000.cnf.xml_796x_template @@ -68,6 +68,12 @@ 64 4.0(1) + + + true + 3 + + 1 0 3600 http://x.x.x.x/cisco_menu/authentication.php diff --git a/conf/sccpgeneral.xml.v431 b/conf/sccpgeneral.xml.v431 index 229924b..1f793d8 100644 --- a/conf/sccpgeneral.xml.v431 +++ b/conf/sccpgeneral.xml.v431 @@ -857,12 +857,28 @@ and open the template in the editor. Base Version before all crash :-) backgroundImageAccess - - off - - + + true + + 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. + + phonePersonalization + + 0 + + + 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: + + + callLogBlfEnabled + + 2 + + + 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 + diff --git a/conf/sccpgeneral.xml.v433 b/conf/sccpgeneral.xml.v433 index 9c76de6..1e5c5d7 100644 --- a/conf/sccpgeneral.xml.v433 +++ b/conf/sccpgeneral.xml.v433 @@ -867,12 +867,28 @@ and open the template in the editor. Base Version before all crash :-) backgroundImageAccess - - off - - + + true + + 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. + + phonePersonalization + + 0 + + + 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: + + + callLogBlfEnabled + + 2 + + + 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 + musicclass diff --git a/conf/sccpsimple.xml.v431 b/conf/sccpsimple.xml.v431 index 090e46d..779a48a 100644 --- a/conf/sccpsimple.xml.v431 +++ b/conf/sccpsimple.xml.v431 @@ -886,12 +886,28 @@ and open the template in the editor. Base Version before all crash :-) backgroundImageAccess - - off - - + + true + + 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. + + phonePersonalization + + 0 + + + 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: + + + callLogBlfEnabled + + 2 + + + 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 + diff --git a/conf/sccpsimple.xml.v433 b/conf/sccpsimple.xml.v433 index 67b92e9..23d8a6c 100644 --- a/conf/sccpsimple.xml.v433 +++ b/conf/sccpsimple.xml.v433 @@ -176,12 +176,14 @@ and open the template in the editor. Base Version before all crash :-) - - - - - - + + callLogBlfEnabled + + 2 + + + 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 + @@ -534,12 +536,20 @@ and open the template in the editor. Base Version before all crash :-) backgroundImageAccess - - off - - + + true + + 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. + + phonePersonalization + + 0 + + + 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: + musicclass diff --git a/views/form.buttons.php b/views/form.buttons.php index 56562c2..03ff59b 100644 --- a/views/form.buttons.php +++ b/views/form.buttons.php @@ -116,8 +116,13 @@ if (!empty($_REQUEST['new_id'])) { $defaul_btn = strtok($data_i,'@'); $def_hint = 'checked'; if ($defaul_btn == $defaul_opt[0]) { - $show_form_mode = 'line'; - $defaul_tv = 'monitor'; + foreach ($lines_list as $data){ + if ($data['name']==$defaul_btn) { + $show_form_mode = 'line'; + $defaul_tv = 'monitor'; + break; + } + } } else { $defaul_btn = $data_i; }