Add subtype to vendor functions and device keys. (#6409)

* Add subtype to vendor functions and device keys.

Added to support phones that require a subtype for provisioning the phone.

* Add device_key_subtype

* Update device_edit.php

* Update device_profile_edit.php

* Update device_vendor_edit.php

* Update device_vendor_function_edit.php

* Update device_vendor_functions.php

* Update device_vendor_restore.php

* Update index.php

* Update provision.php

* Update app_languages.php

* Update app_config.php
This commit is contained in:
FusionPBX
2023-04-04 08:57:41 -06:00
committed by GitHub
parent de08aa6a1d
commit 408122c60c
12 changed files with 867 additions and 383 deletions
+3 -1
View File
@@ -200,6 +200,7 @@ if ($domains_processed == 1) {
$array['device_vendors'][$x]['device_vendor_uuid'] = $device_vendor_uuid;
$array['device_vendors'][$x]['name'] = $vendor['name'];
$array['device_vendors'][$x]['enabled'] = 'true';
$array['device_vendors'][$x]['description'] = $vendor['description'];
//add the vendor functions
if (is_array($vendor['functions']) && @sizeof($vendor['functions'])) {
@@ -209,7 +210,8 @@ if ($domains_processed == 1) {
$device_vendor_function_uuid = uuid();
$array['device_vendor_functions'][$y]['device_vendor_uuid'] = $device_vendor_uuid;
$array['device_vendor_functions'][$y]['device_vendor_function_uuid'] = $device_vendor_function_uuid;
$array['device_vendor_functions'][$y]['name'] = $function['name'];
$array['device_vendor_functions'][$y]['type'] = $function['type'];
$array['device_vendor_functions'][$y]['subtype'] = $function['subtype'];
$array['device_vendor_functions'][$y]['value'] = $function['value'];
$array['device_vendor_functions'][$y]['enabled'] = 'true';
$array['device_vendor_functions'][$y]['description'] = $function['description'];