fusionpbx/app/devices/device_key_edit.php

387 lines
13 KiB
PHP
Raw Normal View History

<?php
2013-12-29 06:20:51 +01:00
/*
FusionPBX
Version: MPL 1.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
The Original Code is FusionPBX
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Copyright (C) 2013 All Rights Reserved.
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('device_key_add') || permission_exists('device_key_edit')) {
//access granted
}
else {
echo "access denied";
exit;
}
//add multi-lingual support
$language = new text;
$text = $language->get();
//action add or update
2019-08-04 04:21:56 +02:00
if (is_uuid($_REQUEST["id"])) {
$action = "update";
2019-08-04 04:21:56 +02:00
$device_key_uuid = $_REQUEST["id"];
$device_uuid = $_REQUEST["device_uuid"];
}
else {
$action = "add";
}
//set the parent uuid
2019-08-04 04:21:56 +02:00
if (is_uuid($_GET["device_key_uuid"])) {
$device_key_uuid = $_GET["device_key_uuid"];
}
//get http post variables and set them to php variables
if (count($_POST)>0) {
2019-08-04 04:21:56 +02:00
$device_key_id = $_POST["device_key_id"];
$device_key_category = $_POST["device_key_category"];
$device_key_type = $_POST["device_key_type"];
$device_key_line = $_POST["device_key_line"];
$device_key_value = $_POST["device_key_value"];
$device_key_extension = $_POST["device_key_extension"];
$device_key_label = $_POST["device_key_label"];
$device_key_icon = $_POST["device_key_icon"];
}
if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$msg = '';
if ($action == "update") {
2019-08-04 04:21:56 +02:00
$device_key_uuid = $_POST["device_key_uuid"];
}
2019-09-18 06:35:49 +02:00
//validate the token
$token = new token;
if (!$token->validate($_SERVER['PHP_SELF'])) {
message::add($text['message-invalid_token'],'negative');
header('Location: devices.php');
exit;
}
//check for all required data
//if (strlen($device_key_id) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_id']."<br>\n"; }
2013-12-29 07:47:25 +01:00
//if (strlen($device_key_category) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_category']."<br>\n"; }
//if (strlen($device_key_type) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_type']."<br>\n"; }
2014-01-03 09:05:46 +01:00
//if (strlen($device_key_line) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_line']."<br>\n"; }
//if (strlen($device_key_value) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_value']."<br>\n"; }
//if (strlen($device_key_extension) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_extension']."<br>\n"; }
//if (strlen($device_key_label) == 0) { $msg .= $text['message-required']." ".$text['label-device_key_label']."<br>\n"; }
if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
require_once "resources/header.php";
require_once "resources/persistformvar.php";
echo "<div align='center'>\n";
echo "<table><tr><td>\n";
echo $msg."<br />";
echo "</td></tr></table>\n";
persistformvar($_POST);
echo "</div>\n";
require_once "resources/footer.php";
return;
}
//add or update the database
if ($_POST["persistformvar"] != "true") {
if ($action == "add" && permission_exists('device_key_add')) {
2019-08-04 04:21:56 +02:00
$array['device_keys'][0]['device_key_uuid'] = uuid();
2018-08-31 05:09:01 +02:00
message::add($text['message-add']);
2019-08-04 04:21:56 +02:00
}
if ($action == "update" && permission_exists('device_key_edit')) {
2019-08-04 04:21:56 +02:00
$array['device_keys'][0]['device_key_uuid'] = $device_key_uuid;
2018-08-31 05:09:01 +02:00
message::add($text['message-update']);
2019-08-04 04:21:56 +02:00
}
if (is_array($array) && @sizeof($array) != 0) {
$array['device_keys'][0]['domain_uuid'] = $domain_uuid;
$array['device_keys'][0]['device_uuid'] = $device_uuid;
$array['device_keys'][0]['device_key_id'] = $device_key_id;
$array['device_keys'][0]['device_key_category'] = $device_key_category;
$array['device_keys'][0]['device_key_type'] = $device_key_type;
$array['device_keys'][0]['device_key_line'] = $device_key_line;
$array['device_keys'][0]['device_key_value'] = $device_key_value;
$array['device_keys'][0]['device_key_extension'] = $device_key_extension;
$array['device_keys'][0]['device_key_label'] = $device_key_label;
$array['device_keys'][0]['device_key_icon'] = $device_key_icon;
$database = new database;
$database->app_name = 'devices';
$database->app_uuid = '4efa1a1a-32e7-bf83-534b-6c8299958a8e';
$database->save($array);
unset($array);
2014-02-23 06:48:33 +01:00
header("Location: device_edit.php?id=".$device_uuid);
return;
2019-08-04 04:21:56 +02:00
}
}
}
//pre-populate the form
if (count($_GET) > 0 && $_POST["persistformvar"] != "true") {
2019-08-04 04:21:56 +02:00
$device_key_uuid = $_GET["id"];
$sql = "select * from v_device_keys ";
2019-08-04 04:21:56 +02:00
$sql .= "where domain_uuid = :domain_uuid ";
$sql .= "and device_key_uuid = :device_key_uuid ";
$parameters['domain_uuid'] = $domain_uuid;
$parameters['device_key_uuid'] = $device_key_uuid;
$database = new database;
$row = $database->select($sql, $parameters, 'row');
if (is_array($row) && @sizeof($row) != 0) {
$device_uuid = $row["device_uuid"];
$device_key_id = $row["device_key_id"];
2013-12-29 07:55:39 +01:00
$device_key_category = $row["device_key_category"];
2013-12-29 07:47:25 +01:00
$device_key_type = $row["device_key_type"];
2014-01-03 09:05:46 +01:00
$device_key_line = $row["device_key_line"];
$device_key_value = $row["device_key_value"];
$device_key_extension = $row["device_key_extension"];
$device_key_label = $row["device_key_label"];
Add device key icon for dss programming (#3896) * Expand Fanvil DSS-Key support for templating * Add DSS key programming to Fanvil X6 * Add device key icon support. * Additional device key icon fixes * Fix SQL for device_key_label * Add device_key_icon varible to X6 dss key programming * Add new Advanced SIP Var (#3859) Add the following advanced SIP variable. Disabling this allows Yealink phones to display the SIP error reason in the format sent by the carrier rather than Q.850 format e.g. "User Busy" rather than "NORMAL_CLEARING" sip.call_fail_use_reason.enable = {$yealink_sip_call_fail_use_reason_enable} * Variables for DP750 Handset Assignment, Ring Type (#3772) New variables for the DP750 to allow the following settings: $grandstream_repeater_mode_enable (Enables or disables repeater mode on DP750 base) $grandstream_hanging_group_mode (Allows users to set hanging group mode (e.g. ring handsets at the same time, sequentially, etc.) $grandstream_handset_X_line_Y_enable (Allows setting of handset to line assignment) * Update app_config.php * Update 520_follow_me_bridge.xml (#3893) Search through all SIP Profiles when looking up the Contact. * Update xml_cdr_delete.php (#3891) Fix typo in delete() query * Make storage_path and storage_type = http_cache work (#3892) * Make storage_path work if storage_path was set, the script would fail. I have fixed it by removing the references to unset variables. I also made the recordings use the path. * Update ivr.conf.lua Add storage_path definition so storage_type of http_cache works correctly * Fix IVR (#3898) IVR was broken after previous update/change. * Add Fanvil one-hit privisioning support for X6 and i30 devices (#3894) * Update directory.xml * Update directory.xml * Update directory.xml * Update directory.xml * Update directory.xml (#3931) * Update directory.xml (#3929) * Update directory.xml (#3928) * Update directory.xml (#3930) * Update directory.xml (#3927) * Update directory.xml (#3924) * Update directory.xml (#3922) * Update directory.xml (#3921) * Update directory.xml (#3923) * Update directory.xml (#3926) * Update directory.xml (#3925) * Update directory.xml (#3920) * Update directory.xml (#3916) * Update directory.xml (#3906) * Update directory.xml (#3919) * Update directory.xml (#3918) * Update directory.xml (#3917) * Update directory.xml (#3915) * Update directory.xml (#3914) * Update directory.xml (#3912) * Update directory.xml (#3911) * Update directory.xml (#3910) * Update directory.xml (#3909) * Update directory.xml (#3913) * Update directory.xml (#3908) * Update directory.xml (#3901) * Update directory.xml (#3902) * Update directory.xml (#3904) * Update directory.xml (#3907) * Update directory.xml (#3905) * Update directory.xml (#3903) * Update extensions.php * Update domains.php * Update dialplans.php * Update users.php * Update click_to_call.php * Update app_config.php * Update app_languages.php * Update dialplan_edit.php * Show enabled extension only on operator panel (#3900) Add e.enabled = 'true' to SQL where and show only enabled extensions on the operator panel. * Add new default_settings for Fanvil products (#3895) * Add new default_settings for Fanvil products * Set setting names too lowercase. * Add additional firmware auto upgrade options * Add intial Fanvil i30 device support (#3897) * Update app_config.php * Update dialplan.php (#3934) Adds the ability to set "dialplan_destination" db field from Upgrade App Defaults and xml dialplan templates. * Update dialplan.php * Fanvil x6 template (#3936) * Allow Fanvil x6 template to dynamically provision DSS memory and expansion keys * Expand Fanvil X6 template options to match latest firmware. Use more FusionPBX default settings. * Remove TR069 CPE serial number from template * Have template use the 'admin_name' and 'admin_pass' default settings for admin webui login * Fanvil i30 template fixes (#3933) * Make varible names lowercase. follows cf76c39e977eaadc3cd1fb5d5160f432ce4e1486 * Additional i30 fixs around FusionPBX and feature enhancements. * Add dynamic memory key programming * Add support for configuring time to leave switch relay open on i-series devices * Add OSD parameters, fix egs_syslog, protect RTSP streams by default * Fix Fanvil 'Memory' keys (#3932) * Expand Fanvil DSS-Key support for templating * Fanvil vendor key fixes. * Fanvil - Edit device keys to type 'memory' only * Add Fanvil SpeedDial memory key support * Update recordings.lua (#3937) Bug fix. Allow for nil and blank entries. * Add DSS key programming to Fanvil X6 * Fanvil 'icon' key for dss key profiles * Fanvil 'icon' key for dss key profiles Add new Advanced SIP Var (#3859) Add the following advanced SIP variable. Disabling this allows Yealink phones to display the SIP error reason in the format sent by the carrier rather than Q.850 format e.g. "User Busy" rather than "NORMAL_CLEARING" sip.call_fail_use_reason.enable = {$yealink_sip_call_fail_use_reason_enable} Variables for DP750 Handset Assignment, Ring Type (#3772) New variables for the DP750 to allow the following settings: $grandstream_repeater_mode_enable (Enables or disables repeater mode on DP750 base) $grandstream_hanging_group_mode (Allows users to set hanging group mode (e.g. ring handsets at the same time, sequentially, etc.) $grandstream_handset_X_line_Y_enable (Allows setting of handset to line assignment) Update app_config.php Update 520_follow_me_bridge.xml (#3893) Search through all SIP Profiles when looking up the Contact. Update xml_cdr_delete.php (#3891) Fix typo in delete() query Make storage_path and storage_type = http_cache work (#3892) * Make storage_path work if storage_path was set, the script would fail. I have fixed it by removing the references to unset variables. I also made the recordings use the path. * Update ivr.conf.lua Add storage_path definition so storage_type of http_cache works correctly Fix IVR (#3898) IVR was broken after previous update/change. Add Fanvil one-hit privisioning support for X6 and i30 devices (#3894) Update directory.xml Update directory.xml Update directory.xml Update directory.xml Update directory.xml (#3931) Update directory.xml (#3929) Update directory.xml (#3928) Update directory.xml (#3930) Update directory.xml (#3927) Update directory.xml (#3924) Update directory.xml (#3922) Update directory.xml (#3921) Update directory.xml (#3923) Update directory.xml (#3926) Update directory.xml (#3925) Update directory.xml (#3920) Update directory.xml (#3916) Update directory.xml (#3906) Update directory.xml (#3919) Update directory.xml (#3918) Update directory.xml (#3917) Update directory.xml (#3915) Update directory.xml (#3914) Update directory.xml (#3912) Update directory.xml (#3911) Update directory.xml (#3910) Update directory.xml (#3909) Update directory.xml (#3913) Update directory.xml (#3908) Update directory.xml (#3901) Update directory.xml (#3902) Update directory.xml (#3904) Update directory.xml (#3907) Update directory.xml (#3905) Update directory.xml (#3903) Update extensions.php Update domains.php Update dialplans.php Update users.php Update click_to_call.php Update app_config.php Update app_languages.php Update dialplan_edit.php Show enabled extension only on operator panel (#3900) Add e.enabled = 'true' to SQL where and show only enabled extensions on the operator panel. Add new default_settings for Fanvil products (#3895) * Add new default_settings for Fanvil products * Set setting names too lowercase. * Add additional firmware auto upgrade options Update app_config.php Update dialplan.php (#3934) Adds the ability to set "dialplan_destination" db field from Upgrade App Defaults and xml dialplan templates. Update dialplan.php Fanvil x6 template (#3936) * Allow Fanvil x6 template to dynamically provision DSS memory and expansion keys * Expand Fanvil X6 template options to match latest firmware. Use more FusionPBX default settings. * Remove TR069 CPE serial number from template * Have template use the 'admin_name' and 'admin_pass' default settings for admin webui login Fanvil i30 template fixes (#3933) * Make varible names lowercase. follows cf76c39e977eaadc3cd1fb5d5160f432ce4e1486 * Additional i30 fixs around FusionPBX and feature enhancements. * Add dynamic memory key programming * Add support for configuring time to leave switch relay open on i-series devices * Add OSD parameters, fix egs_syslog, protect RTSP streams by default Fix Fanvil 'Memory' keys (#3932) * Expand Fanvil DSS-Key support for templating * Fanvil vendor key fixes. * Fanvil - Edit device keys to type 'memory' only * Add Fanvil SpeedDial memory key support Update recordings.lua (#3937) Bug fix. Allow for nil and blank entries. Add DSS key programming to Fanvil X6 * resync3
2018-12-12 18:08:21 +01:00
$device_key_icon = $row["device_key_icon"];
}
2019-08-04 04:21:56 +02:00
unset($sql, $parameters, $row);
}
2019-09-18 06:35:49 +02:00
//create token
$object = new token;
$token = $object->create($_SERVER['PHP_SELF']);
//show the header
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm' action=''>\n";
2015-02-15 08:59:02 +01:00
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left' width='30%' nowrap='nowrap'><b>".$text['title-device_key']."</b></td>\n";
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='device_edit.php?id=$device_uuid'\" value='".$text['button-back']."'></td>\n";
echo "</tr>\n";
2013-12-29 07:47:25 +01:00
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-device_key_category']."\n";
2013-12-29 07:47:25 +01:00
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='device_key_category'>\n";
2019-08-04 04:21:56 +02:00
echo " <option value=''></option>\n";
if ($device_key_category != '') {
$selected[$device_key_category] = "selected='selected'";
}
echo " <option value='line' ".$selected['line'].">".$text['label-line']."</option>\n";
echo " <option value='memory' ".$selected['memory'].">".$text['label-memory']."</option>\n";
echo " <option value='programmable' ".$selected['programmable'].">".$text['label-programmable']."</option>\n";
echo " <option value='expansion' ".$selected['expansion'].">".$text['label-expansion']."</option>\n";
unset($selected);
2013-12-29 07:47:25 +01:00
echo " </select>\n";
echo "<br />\n";
echo $text['description-device_key_category']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-device_key_id']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='device_key_id'>\n";
2019-08-04 04:21:56 +02:00
echo " <option value=''></option>\n";
if (is_numeric($device_key_id)) {
$selected[$device_key_id] = "selected='selected'";
}
2019-08-04 04:21:56 +02:00
for ($i = 1; $i <= 18; $i++) {
echo " <option value='".$i."' ".$selected[$i].">".$i."</option>\n";
}
2019-08-04 04:21:56 +02:00
unset($selected);
echo " </select>\n";
echo "<br />\n";
echo $text['description-device_key_id']."\n";
echo "</td>\n";
echo "</tr>\n";
2014-01-03 09:05:46 +01:00
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-device_key_line']."\n";
2014-01-03 09:05:46 +01:00
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='device_key_line'>\n";
2019-08-04 04:21:56 +02:00
echo " <option value=''></option>\n";
if (is_numeric($device_key_line)) {
$selected[$device_key_line] = "selected='selected'";
2014-01-03 09:05:46 +01:00
}
2019-08-04 04:21:56 +02:00
for ($i = 0; $i <= 12; $i++) {
echo " <option value='".$i."' ".$selected[$i].">".$i."</option>\n";
2014-01-03 09:05:46 +01:00
}
2019-08-04 04:21:56 +02:00
unset($selected);
2014-01-03 09:05:46 +01:00
echo " </select>\n";
echo "<br />\n";
echo $text['description-device_key_line']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-device_key_type']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
2019-08-04 04:21:56 +02:00
$device_key_types['Cisco'] = array(
'line' => 'line',
'disabled' => 'disabled'
);
$device_key_types['Yealink'] = array(
0 => 'N/A (Memory Key Default)',
1 => 'Conference',
2 => 'Forward',
3 => 'Transfer',
4 => 'Hold',
5 => 'DND',
6 => 'Redial',
7 => 'Call Return',
8 => 'SMS',
9 => 'Call Pickup',
10 => 'Call Park',
11 => 'DTMF',
12 => 'Voicemail',
13 => 'SpeedDial',
14 => 'Intercom',
15 => 'Line (Line Key Default)',
16 => 'BLF',
17 => 'URL',
19 => 'Public Hold',
20 => 'Private',
21 => 'Shared Line',
22 => 'XML Group',
23 => 'Group Pickup',
24 => 'Paging',
25 => 'Record',
27 => 'XML Browser',
28 => 'History',
29 => 'Directory',
30 => 'Menu',
32 => 'New SMS',
33 => 'Status',
34 => 'Hot Desking',
35 => 'URL Record',
38 => 'LDAP',
39 => 'BLF List',
40 => 'Prefix',
41 => 'Zero-Sp-Touch',
42 => 'ACD',
43 => 'Local Phonebook',
44 => 'Broadsoft Phonebook',
45 => 'Local Group',
46 => 'Broadsoft Group',
47 => 'XML Phonebook',
48 => 'Switch Account Up',
49 => 'Switch Account Down',
50 => 'Keypad Lock'
);
$device_key_types['Other'] = array(
'line' => 'line',
'other' => 'other'
);
if ($device_key_type != '') {
$selected[$device_key_type] = "selected='selected'";
$found = in_array($device_key_type, $device_key_types_yealink) || $device_key_type == 'disabled' || $device_key_type == 'line' ? true : false;
}
echo "<select class='formfld' name='device_key_type'>\n";
echo " <option value=''></option>\n";
foreach ($device_key_types as $vendor => $types) {
echo "<optgroup label='".$vendor."'>\n";
foreach ($types as $value => $label) {
echo "<option value='".$value."' ".$selected[$value].">".$label."</option>\n";
}
if ($vendor == 'Other' && $device_key_type != '' && !$found) {
echo "<option value='".$device_key_type."'>".$device_key_type."</option>\n";
}
2019-08-04 04:21:56 +02:00
echo "</optgroup>\n";
}
echo "</select>\n";
unset($selected);
echo "<br />\n";
echo $text['description-device_key_type']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-device_key_value']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='device_key_value' maxlength='255' value=\"$device_key_value\">\n";
echo "<br />\n";
echo $text['description-device_key_value']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-device_key_extension']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='device_key_extension' maxlength='255' value=\"$device_key_extension\">\n";
echo "<br />\n";
echo $text['description-device_key_extension']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-device_key_label']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='device_key_label' maxlength='255' value=\"$device_key_label\">\n";
echo "<br />\n";
echo $text['description-device_key_label']."\n";
echo "</td>\n";
echo "</tr>\n";
2019-08-04 04:21:56 +02:00
Add device key icon for dss programming (#3896) * Expand Fanvil DSS-Key support for templating * Add DSS key programming to Fanvil X6 * Add device key icon support. * Additional device key icon fixes * Fix SQL for device_key_label * Add device_key_icon varible to X6 dss key programming * Add new Advanced SIP Var (#3859) Add the following advanced SIP variable. Disabling this allows Yealink phones to display the SIP error reason in the format sent by the carrier rather than Q.850 format e.g. "User Busy" rather than "NORMAL_CLEARING" sip.call_fail_use_reason.enable = {$yealink_sip_call_fail_use_reason_enable} * Variables for DP750 Handset Assignment, Ring Type (#3772) New variables for the DP750 to allow the following settings: $grandstream_repeater_mode_enable (Enables or disables repeater mode on DP750 base) $grandstream_hanging_group_mode (Allows users to set hanging group mode (e.g. ring handsets at the same time, sequentially, etc.) $grandstream_handset_X_line_Y_enable (Allows setting of handset to line assignment) * Update app_config.php * Update 520_follow_me_bridge.xml (#3893) Search through all SIP Profiles when looking up the Contact. * Update xml_cdr_delete.php (#3891) Fix typo in delete() query * Make storage_path and storage_type = http_cache work (#3892) * Make storage_path work if storage_path was set, the script would fail. I have fixed it by removing the references to unset variables. I also made the recordings use the path. * Update ivr.conf.lua Add storage_path definition so storage_type of http_cache works correctly * Fix IVR (#3898) IVR was broken after previous update/change. * Add Fanvil one-hit privisioning support for X6 and i30 devices (#3894) * Update directory.xml * Update directory.xml * Update directory.xml * Update directory.xml * Update directory.xml (#3931) * Update directory.xml (#3929) * Update directory.xml (#3928) * Update directory.xml (#3930) * Update directory.xml (#3927) * Update directory.xml (#3924) * Update directory.xml (#3922) * Update directory.xml (#3921) * Update directory.xml (#3923) * Update directory.xml (#3926) * Update directory.xml (#3925) * Update directory.xml (#3920) * Update directory.xml (#3916) * Update directory.xml (#3906) * Update directory.xml (#3919) * Update directory.xml (#3918) * Update directory.xml (#3917) * Update directory.xml (#3915) * Update directory.xml (#3914) * Update directory.xml (#3912) * Update directory.xml (#3911) * Update directory.xml (#3910) * Update directory.xml (#3909) * Update directory.xml (#3913) * Update directory.xml (#3908) * Update directory.xml (#3901) * Update directory.xml (#3902) * Update directory.xml (#3904) * Update directory.xml (#3907) * Update directory.xml (#3905) * Update directory.xml (#3903) * Update extensions.php * Update domains.php * Update dialplans.php * Update users.php * Update click_to_call.php * Update app_config.php * Update app_languages.php * Update dialplan_edit.php * Show enabled extension only on operator panel (#3900) Add e.enabled = 'true' to SQL where and show only enabled extensions on the operator panel. * Add new default_settings for Fanvil products (#3895) * Add new default_settings for Fanvil products * Set setting names too lowercase. * Add additional firmware auto upgrade options * Add intial Fanvil i30 device support (#3897) * Update app_config.php * Update dialplan.php (#3934) Adds the ability to set "dialplan_destination" db field from Upgrade App Defaults and xml dialplan templates. * Update dialplan.php * Fanvil x6 template (#3936) * Allow Fanvil x6 template to dynamically provision DSS memory and expansion keys * Expand Fanvil X6 template options to match latest firmware. Use more FusionPBX default settings. * Remove TR069 CPE serial number from template * Have template use the 'admin_name' and 'admin_pass' default settings for admin webui login * Fanvil i30 template fixes (#3933) * Make varible names lowercase. follows cf76c39e977eaadc3cd1fb5d5160f432ce4e1486 * Additional i30 fixs around FusionPBX and feature enhancements. * Add dynamic memory key programming * Add support for configuring time to leave switch relay open on i-series devices * Add OSD parameters, fix egs_syslog, protect RTSP streams by default * Fix Fanvil 'Memory' keys (#3932) * Expand Fanvil DSS-Key support for templating * Fanvil vendor key fixes. * Fanvil - Edit device keys to type 'memory' only * Add Fanvil SpeedDial memory key support * Update recordings.lua (#3937) Bug fix. Allow for nil and blank entries. * Add DSS key programming to Fanvil X6 * Fanvil 'icon' key for dss key profiles * Fanvil 'icon' key for dss key profiles Add new Advanced SIP Var (#3859) Add the following advanced SIP variable. Disabling this allows Yealink phones to display the SIP error reason in the format sent by the carrier rather than Q.850 format e.g. "User Busy" rather than "NORMAL_CLEARING" sip.call_fail_use_reason.enable = {$yealink_sip_call_fail_use_reason_enable} Variables for DP750 Handset Assignment, Ring Type (#3772) New variables for the DP750 to allow the following settings: $grandstream_repeater_mode_enable (Enables or disables repeater mode on DP750 base) $grandstream_hanging_group_mode (Allows users to set hanging group mode (e.g. ring handsets at the same time, sequentially, etc.) $grandstream_handset_X_line_Y_enable (Allows setting of handset to line assignment) Update app_config.php Update 520_follow_me_bridge.xml (#3893) Search through all SIP Profiles when looking up the Contact. Update xml_cdr_delete.php (#3891) Fix typo in delete() query Make storage_path and storage_type = http_cache work (#3892) * Make storage_path work if storage_path was set, the script would fail. I have fixed it by removing the references to unset variables. I also made the recordings use the path. * Update ivr.conf.lua Add storage_path definition so storage_type of http_cache works correctly Fix IVR (#3898) IVR was broken after previous update/change. Add Fanvil one-hit privisioning support for X6 and i30 devices (#3894) Update directory.xml Update directory.xml Update directory.xml Update directory.xml Update directory.xml (#3931) Update directory.xml (#3929) Update directory.xml (#3928) Update directory.xml (#3930) Update directory.xml (#3927) Update directory.xml (#3924) Update directory.xml (#3922) Update directory.xml (#3921) Update directory.xml (#3923) Update directory.xml (#3926) Update directory.xml (#3925) Update directory.xml (#3920) Update directory.xml (#3916) Update directory.xml (#3906) Update directory.xml (#3919) Update directory.xml (#3918) Update directory.xml (#3917) Update directory.xml (#3915) Update directory.xml (#3914) Update directory.xml (#3912) Update directory.xml (#3911) Update directory.xml (#3910) Update directory.xml (#3909) Update directory.xml (#3913) Update directory.xml (#3908) Update directory.xml (#3901) Update directory.xml (#3902) Update directory.xml (#3904) Update directory.xml (#3907) Update directory.xml (#3905) Update directory.xml (#3903) Update extensions.php Update domains.php Update dialplans.php Update users.php Update click_to_call.php Update app_config.php Update app_languages.php Update dialplan_edit.php Show enabled extension only on operator panel (#3900) Add e.enabled = 'true' to SQL where and show only enabled extensions on the operator panel. Add new default_settings for Fanvil products (#3895) * Add new default_settings for Fanvil products * Set setting names too lowercase. * Add additional firmware auto upgrade options Update app_config.php Update dialplan.php (#3934) Adds the ability to set "dialplan_destination" db field from Upgrade App Defaults and xml dialplan templates. Update dialplan.php Fanvil x6 template (#3936) * Allow Fanvil x6 template to dynamically provision DSS memory and expansion keys * Expand Fanvil X6 template options to match latest firmware. Use more FusionPBX default settings. * Remove TR069 CPE serial number from template * Have template use the 'admin_name' and 'admin_pass' default settings for admin webui login Fanvil i30 template fixes (#3933) * Make varible names lowercase. follows cf76c39e977eaadc3cd1fb5d5160f432ce4e1486 * Additional i30 fixs around FusionPBX and feature enhancements. * Add dynamic memory key programming * Add support for configuring time to leave switch relay open on i-series devices * Add OSD parameters, fix egs_syslog, protect RTSP streams by default Fix Fanvil 'Memory' keys (#3932) * Expand Fanvil DSS-Key support for templating * Fanvil vendor key fixes. * Fanvil - Edit device keys to type 'memory' only * Add Fanvil SpeedDial memory key support Update recordings.lua (#3937) Bug fix. Allow for nil and blank entries. Add DSS key programming to Fanvil X6 * resync3
2018-12-12 18:08:21 +01:00
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-device_key_icon']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='device_key_icon' maxlength='255' value=\"$device_key_icon\">\n";
echo "<br />\n";
echo $text['description-device_key_icon']."\n";
echo "</td>\n";
echo "</tr>\n";
echo " <tr>\n";
echo " <td colspan='2' align='right'>\n";
2015-02-15 08:59:02 +01:00
echo " <input type='hidden' name='device_uuid' value='$device_uuid'>\n";
if ($action == "update") {
2015-02-15 08:59:02 +01:00
echo " <input type='hidden' name='device_key_uuid' value='$device_key_uuid'>\n";
}
2019-09-18 06:35:49 +02:00
echo " <input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
2015-02-15 10:20:19 +01:00
echo " <br>";
2015-02-15 08:59:02 +01:00
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo " </td>\n";
echo " </tr>";
echo "</table>";
2015-02-15 08:59:02 +01:00
echo "<br><br>";
echo "</form>";
//include the footer
require_once "resources/footer.php";
2019-08-04 04:21:56 +02:00
?>