diff --git a/app/device_vendors/app_config.php b/app/device_vendors/app_config.php
deleted file mode 100644
index e885a1d143..0000000000
--- a/app/device_vendors/app_config.php
+++ /dev/null
@@ -1,807 +0,0 @@
-\n";
- foreach ($vendors as $vendor) {
- //print_r($vendor);
- $vendor = $vendor['name'];
- echo "
$vendor
\n";
- $functions = $vendor['functions'];
- foreach ($vendor['functions'] as $type) {
- echo "
\n";
- echo "label: ".$type['label']."\n";
- echo "name: ".$type['name']."\n";
- echo "value: ".$type['value']."\n";
- }
- }
- echo "\n";
- */
-
- /*
- //select
- $device_vendor = 'yealink';
- $device_key_type = '16';
- echo "\n";
- */
-
-?>
\ No newline at end of file
diff --git a/app/device_vendors/app_defaults.php b/app/device_vendors/app_defaults.php
deleted file mode 100644
index b2df8bdb03..0000000000
--- a/app/device_vendors/app_defaults.php
+++ /dev/null
@@ -1,95 +0,0 @@
-
- Portions created by the Initial Developer are Copyright (C) 2016
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
- Mark J Crane
-*/
-
- if ($domains_processed == 1) {
-
- //add the music_on_hold list to the database
- $sql = "select count(*) as num_rows from v_device_vendors; ";
- $prep_statement = $db->prepare($sql);
- if ($prep_statement) {
- $prep_statement->execute();
- $row = $prep_statement->fetch(PDO::FETCH_ASSOC);
- if ($row['num_rows'] == 0) {
-
- //get the vendor array
- require_once $_SERVER["DOCUMENT_ROOT"].'/'.PROJECT_PATH.'/app/device_vendors/app_config.php';
-
- //process the array
- foreach ($vendors as $vendor) {
-
- //insert the data into the database
- $device_vendor_uuid = uuid();
- $sql = "insert into v_device_vendors ";
- $sql .= "(";
- $sql .= "device_vendor_uuid, ";
- $sql .= "name, ";
- $sql .= "enabled ";
- $sql .= ") ";
- $sql .= "values ";
- $sql .= "( ";
- $sql .= "'".$device_vendor_uuid."', ";
- $sql .= "'".$vendor['name']."', ";
- $sql .= "'true' ";
- $sql .= ");";
- //echo $sql."\n";
- $db->exec(check_sql($sql));
- unset($sql);
-
- //add the vendor functions
- foreach ($vendor['functions'] as $function) {
-
- //add the coference profile params
- $device_vendor_function_uuid = uuid();
- $sql = "insert into v_device_vendor_functions ";
- $sql .= "(";
- $sql .= "device_vendor_uuid, ";
- $sql .= "device_vendor_function_uuid, ";
- $sql .= "name, ";
- $sql .= "value, ";
- $sql .= "enabled, ";
- $sql .= "description ";
- $sql .= ") ";
- $sql .= "values ";
- $sql .= "( ";
- $sql .= "'".$device_vendor_uuid."', ";
- $sql .= "'".$device_vendor_function_uuid."', ";
- $sql .= "'".$function['name']."', ";
- $sql .= "'".$function['value']."', ";
- $sql .= "'true', ";
- $sql .= "'".$function['description']."' ";
- $sql .= ");";
- //echo $sql."\n";
- $db->exec(check_sql($sql));
- unset($sql);
- }
-
- }
- } //if num_rows
- } //if prep_statement
-
- }
-
-?>
\ No newline at end of file
diff --git a/app/device_vendors/app_languages.php b/app/device_vendors/app_languages.php
deleted file mode 100644
index ecc15a41dc..0000000000
--- a/app/device_vendors/app_languages.php
+++ /dev/null
@@ -1,224 +0,0 @@
-
\ No newline at end of file
diff --git a/app/device_vendors/root.php b/app/device_vendors/root.php
deleted file mode 100644
index 62fbe1b2e2..0000000000
--- a/app/device_vendors/root.php
+++ /dev/null
@@ -1,91 +0,0 @@
-
- Portions created by the Initial Developer are Copyright (C) 2008-2012
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
- Mark J Crane
-*/
-
-// make sure the PATH_SEPARATOR is defined
- umask(2);
- if (!defined("PATH_SEPARATOR")) {
- if (strpos($_ENV["OS"], "Win") !== false) {
- define("PATH_SEPARATOR", ";");
- } else {
- define("PATH_SEPARATOR", ":");
- }
- }
-
- if (!isset($output_format)) $output_format = (PHP_SAPI == 'cli') ? 'text' : 'html';
-
-// make sure the document_root is set
- $_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
- if(PHP_SAPI == 'cli'){
- chdir(pathinfo(realpath($_SERVER["PHP_SELF"]), PATHINFO_DIRNAME));
- $script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]);
- $dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME));
- if (file_exists('/project_root.php')) {
- $path = '/';
- } else {
- $i = 1;
- $path = '';
- while ($i < count($dirs)) {
- $path .= '/' . $dirs[$i];
- if (file_exists($path. '/project_root.php')) {
- break;
- }
- $i++;
- }
- }
- $_SERVER["DOCUMENT_ROOT"] = $path;
- }else{
- $_SERVER["DOCUMENT_ROOT"] = str_replace($_SERVER["PHP_SELF"], "", $_SERVER["SCRIPT_FILENAME"]);
- }
- $_SERVER["DOCUMENT_ROOT"] = realpath($_SERVER["DOCUMENT_ROOT"]);
-
-// try to detect if a project path is being used
- if (!defined('PROJECT_PATH')) {
- if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) {
- define('PROJECT_PATH', '/fusionpbx');
- } elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) {
- define('PROJECT_PATH', '');
- } else {
- $dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)));
- $i = 1;
- $path = $_SERVER["DOCUMENT_ROOT"];
- while ($i < count($dirs)) {
- $path .= '/' . $dirs[$i];
- if (file_exists($path. '/project_root.php')) {
- break;
- }
- $i++;
- }
- if(!file_exists($path. '/project_root.php')){
- die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance");
- }
- $project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
- define('PROJECT_PATH', $project_path);
- }
- $_SERVER["PROJECT_ROOT"] = realpath($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH);
- set_include_path(get_include_path() . PATH_SEPARATOR . $_SERVER["PROJECT_ROOT"]);
- }
-
-?>
\ No newline at end of file
diff --git a/app/devices/app_config.php b/app/devices/app_config.php
index 26127b6eb1..1c48a80f68 100644
--- a/app/devices/app_config.php
+++ b/app/devices/app_config.php
@@ -204,6 +204,30 @@
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
$apps[$x]['permissions'][$y]['groups'][] = 'admin';
$y++;
+ $apps[$x]['permissions'][$y]['name'] = 'device_vendor_view';
+ $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+ $y++;
+ $apps[$x]['permissions'][$y]['name'] = 'device_vendor_add';
+ $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+ $y++;
+ $apps[$x]['permissions'][$y]['name'] = 'device_vendor_edit';
+ $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+ $y++;
+ $apps[$x]['permissions'][$y]['name'] = 'device_vendor_delete';
+ $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+ $y++;
+ $apps[$x]['permissions'][$y]['name'] = 'device_vendor_function_view';
+ $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+ $y++;
+ $apps[$x]['permissions'][$y]['name'] = 'device_vendor_function_add';
+ $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+ $y++;
+ $apps[$x]['permissions'][$y]['name'] = 'device_vendor_function_edit';
+ $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+ $y++;
+ $apps[$x]['permissions'][$y]['name'] = 'device_vendor_function_delete';
+ $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+ $y++;
//schema details
$y = 0; //table array index
@@ -546,4 +570,770 @@
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++;
+ $y = 5; //table array index
+ $z = 0; //field array index
+ $apps[$x]['db'][$y]['table'] = 'v_device_vendors';
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = 'device_vendor_uuid';
+ $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
+ $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
+ $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
+ $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = 'name';
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the name.';
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = 'enabled';
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Set the status of the vendor.';
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = 'description';
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the description.';
+ $z++;
+
+ $y = 6; //table array index
+ $z = 0; //field array index
+ $apps[$x]['db'][$y]['table'] = 'v_device_vendor_functions';
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = 'device_vendor_function_uuid';
+ $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
+ $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
+ $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
+ $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = 'device_vendor_uuid';
+ $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
+ $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
+ $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
+ $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
+ $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_device_vendor';
+ $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'device_vendor_uuid';
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = 'label';
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the label.';
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = 'name';
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the name.';
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = 'value';
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the value.';
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = 'enabled';
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Set the status of the function.';
+ $z++;
+ $apps[$x]['db'][$y]['fields'][$z]['name'] = 'description';
+ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
+ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the description.';
+ $z++;
+
+ //vendor details
+ $y=0; //vendor array index
+ $z=0; //functions array index
+ $vendors[$y]['name'] = "yealink";
+ $vendors[$y]['functions'][$z]['label'] = "label-na";
+ $vendors[$y]['functions'][$z]['name'] = "na";
+ $vendors[$y]['functions'][$z]['value'] = "0";
+ $vendors[$y]['functions'][$z]['groups'][] = "admin";
+ $vendors[$y]['functions'][$z]['groups'][] = "superadmin";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-line";
+ $vendors[$y]['functions'][$z]['name'] = "line";
+ $vendors[$y]['functions'][$z]['value'] = "15";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-conference";
+ $vendors[$y]['functions'][$z]['name'] = "conference";
+ $vendors[$y]['functions'][$z]['value'] = "1";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-forward";
+ $vendors[$y]['functions'][$z]['name'] = "forward";
+ $vendors[$y]['functions'][$z]['value'] = "2";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-transfer";
+ $vendors[$y]['functions'][$z]['name'] = "transfer";
+ $vendors[$y]['functions'][$z]['value'] = "3";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-hold";
+ $vendors[$y]['functions'][$z]['name'] = "hold";
+ $vendors[$y]['functions'][$z]['value'] = "4";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-dnd";
+ $vendors[$y]['functions'][$z]['name'] = "dnd";
+ $vendors[$y]['functions'][$z]['value'] = "5";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-redial";
+ $vendors[$y]['functions'][$z]['name'] = "redial";
+ $vendors[$y]['functions'][$z]['value'] = "6";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-call_return";
+ $vendors[$y]['functions'][$z]['name'] = "call_return";
+ $vendors[$y]['functions'][$z]['value'] = "7";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-sms";
+ $vendors[$y]['functions'][$z]['name'] = "sms";
+ $vendors[$y]['functions'][$z]['value'] = "8";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-call_pickup";
+ $vendors[$y]['functions'][$z]['name'] = "call_pickup";
+ $vendors[$y]['functions'][$z]['value'] = "9";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-call_park";
+ $vendors[$y]['functions'][$z]['name'] = "call_park";
+ $vendors[$y]['functions'][$z]['value'] = "10";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-dtmf";
+ $vendors[$y]['functions'][$z]['name'] = "dtmf";
+ $vendors[$y]['functions'][$z]['value'] = "11";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-voicemail";
+ $vendors[$y]['functions'][$z]['name'] = "voicemail";
+ $vendors[$y]['functions'][$z]['value'] = "12";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
+ $vendors[$y]['functions'][$z]['name'] = "speed_dial";
+ $vendors[$y]['functions'][$z]['value'] = "13";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-intercom";
+ $vendors[$y]['functions'][$z]['name'] = "intercom";
+ $vendors[$y]['functions'][$z]['value'] = "14";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-blf";
+ $vendors[$y]['functions'][$z]['name'] = "blf";
+ $vendors[$y]['functions'][$z]['value'] = "16";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-url";
+ $vendors[$y]['functions'][$z]['name'] = "url";
+ $vendors[$y]['functions'][$z]['value'] = "17";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-public_hold";
+ $vendors[$y]['functions'][$z]['name'] = "public_hold";
+ $vendors[$y]['functions'][$z]['value'] = "19";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-private";
+ $vendors[$y]['functions'][$z]['name'] = "private";
+ $vendors[$y]['functions'][$z]['value'] = "20";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-shared_line";
+ $vendors[$y]['functions'][$z]['name'] = "shared_line";
+ $vendors[$y]['functions'][$z]['value'] = "21";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-xml_group";
+ $vendors[$y]['functions'][$z]['name'] = "xml_group";
+ $vendors[$y]['functions'][$z]['value'] = "22";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-group_pickup";
+ $vendors[$y]['functions'][$z]['name'] = "group_pickup";
+ $vendors[$y]['functions'][$z]['value'] = "23";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-paging";
+ $vendors[$y]['functions'][$z]['name'] = "paging";
+ $vendors[$y]['functions'][$z]['value'] = "24";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-record";
+ $vendors[$y]['functions'][$z]['name'] = "record";
+ $vendors[$y]['functions'][$z]['value'] = "25";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-xml_browser";
+ $vendors[$y]['functions'][$z]['name'] = "xml_browser";
+ $vendors[$y]['functions'][$z]['value'] = "27";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-history";
+ $vendors[$y]['functions'][$z]['name'] = "history";
+ $vendors[$y]['functions'][$z]['value'] = "28";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-directory";
+ $vendors[$y]['functions'][$z]['name'] = "directory";
+ $vendors[$y]['functions'][$z]['value'] = "29";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-menu";
+ $vendors[$y]['functions'][$z]['name'] = "menu";
+ $vendors[$y]['functions'][$z]['value'] = "30";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-new_sms";
+ $vendors[$y]['functions'][$z]['name'] = "new_sms";
+ $vendors[$y]['functions'][$z]['value'] = "32";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-status";
+ $vendors[$y]['functions'][$z]['name'] = "status";
+ $vendors[$y]['functions'][$z]['value'] = "33";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-hot_desking";
+ $vendors[$y]['functions'][$z]['name'] = "hot_desking";
+ $vendors[$y]['functions'][$z]['value'] = "34";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-url_record";
+ $vendors[$y]['functions'][$z]['name'] = "url_record";
+ $vendors[$y]['functions'][$z]['value'] = "35";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-ldap";
+ $vendors[$y]['functions'][$z]['name'] = "ldap";
+ $vendors[$y]['functions'][$z]['value'] = "38";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-blf_list";
+ $vendors[$y]['functions'][$z]['name'] = "blf_list";
+ $vendors[$y]['functions'][$z]['value'] = "39";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-prefix";
+ $vendors[$y]['functions'][$z]['name'] = "prefix";
+ $vendors[$y]['functions'][$z]['value'] = "40";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-zero_sp_touch";
+ $vendors[$y]['functions'][$z]['name'] = "zero_sp_touch";
+ $vendors[$y]['functions'][$z]['value'] = "41";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-acd";
+ $vendors[$y]['functions'][$z]['name'] = "acd";
+ $vendors[$y]['functions'][$z]['value'] = "42";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-local_phonebook";
+ $vendors[$y]['functions'][$z]['name'] = "local_phonebook";
+ $vendors[$y]['functions'][$z]['value'] = "43";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-broadsoft_phonebook";
+ $vendors[$y]['functions'][$z]['name'] = "broadsoft_phonebook";
+ $vendors[$y]['functions'][$z]['value'] = "44";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-local_group";
+ $vendors[$y]['functions'][$z]['name'] = "local_group";
+ $vendors[$y]['functions'][$z]['value'] = "45";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-broadsoft_group";
+ $vendors[$y]['functions'][$z]['name'] = "broadsoft_group";
+ $vendors[$y]['functions'][$z]['value'] = "46";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-xml_phonebook";
+ $vendors[$y]['functions'][$z]['name'] = "xml_phonebook";
+ $vendors[$y]['functions'][$z]['value'] = "47";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-switch_account_up";
+ $vendors[$y]['functions'][$z]['name'] = "switch_account_up";
+ $vendors[$y]['functions'][$z]['value'] = "48";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-switch_account_down";
+ $vendors[$y]['functions'][$z]['name'] = "switch_account_down";
+ $vendors[$y]['functions'][$z]['value'] = "49";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-keypad_lock";
+ $vendors[$y]['functions'][$z]['name'] = "keypad_lock";
+ $vendors[$y]['functions'][$z]['value'] = "50";
+ $z++;
+
+ $y++; //vendors array index
+ $z=0; //functions array index
+ $vendors[$y]['name'] = "snom";
+ $vendors[$y]['functions'][$z]['label'] = "label-none";
+ $vendors[$y]['functions'][$z]['name'] = "none";
+ $vendors[$y]['functions'][$z]['value'] = "none";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-url";
+ $vendors[$y]['functions'][$z]['name'] = "action_url";
+ $vendors[$y]['functions'][$z]['value'] = "action_url";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-auto_answer";
+ $vendors[$y]['functions'][$z]['name'] = "auto_answer";
+ $vendors[$y]['functions'][$z]['value'] = "auto_answer";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-blf";
+ $vendors[$y]['functions'][$z]['name'] = "blf";
+ $vendors[$y]['functions'][$z]['value'] = "blf";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-button";
+ $vendors[$y]['functions'][$z]['name'] = "button";
+ $vendors[$y]['functions'][$z]['value'] = "button";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-call_agent";
+ $vendors[$y]['functions'][$z]['name'] = "call_agent";
+ $vendors[$y]['functions'][$z]['value'] = "call_agent";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-conference";
+ $vendors[$y]['functions'][$z]['name'] = "conference";
+ $vendors[$y]['functions'][$z]['value'] = "conference";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-dtmf";
+ $vendors[$y]['functions'][$z]['name'] = "dtmf";
+ $vendors[$y]['functions'][$z]['value'] = "dtmf";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-extension";
+ $vendors[$y]['functions'][$z]['name'] = "dest";
+ $vendors[$y]['functions'][$z]['value'] = "dest";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-redirect";
+ $vendors[$y]['functions'][$z]['name'] = "redirect";
+ $vendors[$y]['functions'][$z]['value'] = "redirect";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-intercom";
+ $vendors[$y]['functions'][$z]['name'] = "icom";
+ $vendors[$y]['functions'][$z]['value'] = "icom";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-ivr";
+ $vendors[$y]['functions'][$z]['name'] = "ivr";
+ $vendors[$y]['functions'][$z]['value'] = "ivr";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-key_event";
+ $vendors[$y]['functions'][$z]['name'] = "keyevent";
+ $vendors[$y]['functions'][$z]['value'] = "keyevent";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-line";
+ $vendors[$y]['functions'][$z]['name'] = "line";
+ $vendors[$y]['functions'][$z]['value'] = "line";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-multicast_page";
+ $vendors[$y]['functions'][$z]['name'] = "multicast";
+ $vendors[$y]['functions'][$z]['value'] = "multicast";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-orbit";
+ $vendors[$y]['functions'][$z]['name'] = "orbit";
+ $vendors[$y]['functions'][$z]['value'] = "orbit";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-presence";
+ $vendors[$y]['functions'][$z]['name'] = "presence";
+ $vendors[$y]['functions'][$z]['value'] = "presence";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-p2t";
+ $vendors[$y]['functions'][$z]['name'] = "p2t";
+ $vendors[$y]['functions'][$z]['value'] = "p2t";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-shared_line";
+ $vendors[$y]['functions'][$z]['name'] = "mult";
+ $vendors[$y]['functions'][$z]['value'] = "mult";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
+ $vendors[$y]['functions'][$z]['name'] = "speed";
+ $vendors[$y]['functions'][$z]['value'] = "speed";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-transfer";
+ $vendors[$y]['functions'][$z]['name'] = "transfer";
+ $vendors[$y]['functions'][$z]['value'] = "transfer";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-record";
+ $vendors[$y]['functions'][$z]['name'] = "recorder";
+ $vendors[$y]['functions'][$z]['value'] = "recorder";
+ $z++;
+
+ $y++; //vendors array index
+ $z=0; //functions array index
+ $vendors[$y]['name'] = "polycom";
+ $vendors[$y]['functions'][$z]['label'] = "label-line";
+ $vendors[$y]['functions'][$z]['name'] = "line";
+ $vendors[$y]['functions'][$z]['value'] = "line";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-automata";
+ $vendors[$y]['functions'][$z]['name'] = "automata";
+ $vendors[$y]['functions'][$z]['value'] = "automata";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-normal";
+ $vendors[$y]['functions'][$z]['name'] = "normal";
+ $vendors[$y]['functions'][$z]['value'] = "normal";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-messages";
+ $vendors[$y]['functions'][$z]['name'] = "Messages";
+ $vendors[$y]['functions'][$z]['value'] = "Messages";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-micmute";
+ $vendors[$y]['functions'][$z]['name'] = "MicMute";
+ $vendors[$y]['functions'][$z]['value'] = "MicMute";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-redial";
+ $vendors[$y]['functions'][$z]['name'] = "Redial";
+ $vendors[$y]['functions'][$z]['value'] = "Redial";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-null";
+ $vendors[$y]['functions'][$z]['name'] = "Null";
+ $vendors[$y]['functions'][$z]['value'] = "Null";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-speeddial";
+ $vendors[$y]['functions'][$z]['name'] = "SpeedDial";
+ $vendors[$y]['functions'][$z]['value'] = "SpeedDial";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-speeddialmenu";
+ $vendors[$y]['functions'][$z]['name'] = "SpeedDialMenu";
+ $vendors[$y]['functions'][$z]['value'] = "SpeedDialMenu";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-url";
+ $vendors[$y]['functions'][$z]['name'] = "URL";
+ $vendors[$y]['functions'][$z]['value'] = "URL";
+
+ $y++; //vendors array index
+ $z=0; //functions array index
+ $vendors[$y]['name'] = "aastra";
+ $vendors[$y]['functions'][$z]['label'] = "label-blf";
+ $vendors[$y]['functions'][$z]['name'] = "blf";
+ $vendors[$y]['functions'][$z]['value'] = "blf";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-blf_xfer";
+ $vendors[$y]['functions'][$z]['name'] = "blfxfer";
+ $vendors[$y]['functions'][$z]['value'] = "blfxfer";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-callers";
+ $vendors[$y]['functions'][$z]['name'] = "callers";
+ $vendors[$y]['functions'][$z]['value'] = "callers";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-dnd";
+ $vendors[$y]['functions'][$z]['name'] = "dnd";
+ $vendors[$y]['functions'][$z]['value'] = "dnd";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
+ $vendors[$y]['functions'][$z]['name'] = "speeddial";
+ $vendors[$y]['functions'][$z]['value'] = "speeddial";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-xfer";
+ $vendors[$y]['functions'][$z]['name'] = "xfer";
+ $vendors[$y]['functions'][$z]['value'] = "xfer";
+
+ $y++; //vendors array index
+ $z=0; //functions array index
+ $vendors[$y]['name'] = "cisco";
+ $vendors[$y]['functions'][$z]['label'] = "label-blf";
+ $vendors[$y]['functions'][$z]['name'] = "blf";
+ $vendors[$y]['functions'][$z]['value'] = "blf";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-line";
+ $vendors[$y]['functions'][$z]['name'] = "line";
+ $vendors[$y]['functions'][$z]['value'] = "line";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-disabled";
+ $vendors[$y]['functions'][$z]['name'] = "disabled";
+ $vendors[$y]['functions'][$z]['value'] = "disabled";
+
+ $y++; //vendors array index
+ $z=0; //functions array index
+ $vendors[$y]['name'] = "escene";
+ $vendors[$y]['functions'][$z]['label'] = "label-blf";
+ $vendors[$y]['functions'][$z]['name'] = "blf";
+ $vendors[$y]['functions'][$z]['value'] = "1";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-call_park";
+ $vendors[$y]['functions'][$z]['name'] = "call_park";
+ $vendors[$y]['functions'][$z]['value'] = "7";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-dtmf";
+ $vendors[$y]['functions'][$z]['name'] = "dtmf";
+ $vendors[$y]['functions'][$z]['value'] = "4";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
+ $vendors[$y]['functions'][$z]['name'] = "speed_dial";
+ $vendors[$y]['functions'][$z]['value'] = "5";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-speed_dial_prefix";
+ $vendors[$y]['functions'][$z]['name'] = "speed_dial_prefix";
+ $vendors[$y]['functions'][$z]['value'] = "2";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-intercom";
+ $vendors[$y]['functions'][$z]['name'] = "intercom";
+ $vendors[$y]['functions'][$z]['value'] = "8";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-pickup";
+ $vendors[$y]['functions'][$z]['name'] = "pickup";
+ $vendors[$y]['functions'][$z]['value'] = "9";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-broadsoft_group";
+ $vendors[$y]['functions'][$z]['name'] = "broadsoft_group";
+ $vendors[$y]['functions'][$z]['value'] = "11";
+ //BLA type 3 Paging type 6
+
+ $y++; //vendors array index
+ $z=0; //functions array index
+ $vendors[$y]['name'] = "escene programmable";
+ $vendors[$y]['functions'][$z]['label'] = "label-default";
+ $vendors[$y]['functions'][$z]['name'] = "default";
+ $vendors[$y]['functions'][$z]['value'] = "0";
+ $vendors[$y]['functions'][$z]['description'] = "Default";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-redial";
+ $vendors[$y]['functions'][$z]['name'] = "redial";
+ $vendors[$y]['functions'][$z]['value'] = "1";
+ $vendors[$y]['functions'][$z]['description'] = "Redial";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-dnd";
+ $vendors[$y]['functions'][$z]['name'] = "dnd";
+ $vendors[$y]['functions'][$z]['value'] = "2";
+ $vendors[$y]['functions'][$z]['description'] = "DND";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-phone_book";
+ $vendors[$y]['functions'][$z]['name'] = "phone_book";
+ $vendors[$y]['functions'][$z]['value'] = "3";
+ $vendors[$y]['functions'][$z]['description'] = "Contacts";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-ent_phone_book";
+ $vendors[$y]['functions'][$z]['name'] = "ent_phone_book";
+ $vendors[$y]['functions'][$z]['value'] = "4";
+ $vendors[$y]['functions'][$z]['description'] = "Enterprise Phonebook";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-ldap";
+ $vendors[$y]['functions'][$z]['name'] = "ldap";
+ $vendors[$y]['functions'][$z]['value'] = "5";
+ $vendors[$y]['functions'][$z]['description'] = "LDAP";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-directory";
+ $vendors[$y]['functions'][$z]['name'] = "directory";
+ $vendors[$y]['functions'][$z]['value'] = "6";
+ $vendors[$y]['functions'][$z]['description'] = "Directory";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
+ $vendors[$y]['functions'][$z]['name'] = "speed_dial";
+ $vendors[$y]['functions'][$z]['value'] = "7";
+ $vendors[$y]['functions'][$z]['description'] = "Speed Dial";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-call_log";
+ $vendors[$y]['functions'][$z]['name'] = "call_log";
+ $vendors[$y]['functions'][$z]['value'] = "8";
+ $vendors[$y]['functions'][$z]['description'] = "Call List";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-missed_calls";
+ $vendors[$y]['functions'][$z]['name'] = "missed_calls";
+ $vendors[$y]['functions'][$z]['value'] = "9";
+ $vendors[$y]['functions'][$z]['description'] = "Missed Calls";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-received_calls";
+ $vendors[$y]['functions'][$z]['name'] = "received_calls";
+ $vendors[$y]['functions'][$z]['value'] = "10";
+ $vendors[$y]['functions'][$z]['description'] = "Received Calls";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-dialed_calls";
+ $vendors[$y]['functions'][$z]['name'] = "dialed_calls";
+ $vendors[$y]['functions'][$z]['value'] = "11";
+ $vendors[$y]['functions'][$z]['description'] = "Dialed Calls";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-menu";
+ $vendors[$y]['functions'][$z]['name'] = "menu";
+ $vendors[$y]['functions'][$z]['value'] = "12";
+ $vendors[$y]['functions'][$z]['description'] = "Menu";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-sms";
+ $vendors[$y]['functions'][$z]['name'] = "sms";
+ $vendors[$y]['functions'][$z]['value'] = "13";
+ $vendors[$y]['functions'][$z]['description'] = "SMS";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-new_sms";
+ $vendors[$y]['functions'][$z]['name'] = "new_sms";
+ $vendors[$y]['functions'][$z]['value'] = "14";
+ $vendors[$y]['functions'][$z]['description'] = "New SMS";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-forward";
+ $vendors[$y]['functions'][$z]['name'] = "forward";
+ $vendors[$y]['functions'][$z]['value'] = "15";
+ $vendors[$y]['functions'][$z]['description'] = "Call Forward";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-status";
+ $vendors[$y]['functions'][$z]['name'] = "status";
+ $vendors[$y]['functions'][$z]['value'] = "16";
+ $vendors[$y]['functions'][$z]['description'] = "View Status";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-enable_account";
+ $vendors[$y]['functions'][$z]['name'] = "enable_account";
+ $vendors[$y]['functions'][$z]['value'] = "17";
+ $vendors[$y]['functions'][$z]['description'] = "Enable/Disable SIP Account";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-xml_browser";
+ $vendors[$y]['functions'][$z]['name'] = "xml browser";
+ $vendors[$y]['functions'][$z]['value'] = "18";
+ $vendors[$y]['functions'][$z]['enabled'] = "false";
+ $vendors[$y]['functions'][$z]['description'] = "XML Browser";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-provison_now";
+ $vendors[$y]['functions'][$z]['name'] = "provison_now";
+ $vendors[$y]['functions'][$z]['value'] = "19";
+ $vendors[$y]['functions'][$z]['description'] = "Auto Provison Now";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-hot_desking";
+ $vendors[$y]['functions'][$z]['name'] = "hot_desking";
+ $vendors[$y]['functions'][$z]['value'] = "20";
+ $vendors[$y]['functions'][$z]['description'] = "Hot Desking";
+ $z++;
+
+ $y++; //vendors array index
+ $z=0; //functions array index
+ $vendors[$y]['name'] = "grandstream";
+ $vendors[$y]['functions'][$z]['label'] = "label-line";
+ $vendors[$y]['functions'][$z]['name'] = "line";
+ $vendors[$y]['functions'][$z]['value'] = "line";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-shared_line";
+ $vendors[$y]['functions'][$z]['name'] = "shared line";
+ $vendors[$y]['functions'][$z]['value'] = "shared line";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
+ $vendors[$y]['functions'][$z]['name'] = "speed dial";
+ $vendors[$y]['functions'][$z]['value'] = "speed dial";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-blf";
+ $vendors[$y]['functions'][$z]['name'] = "blf";
+ $vendors[$y]['functions'][$z]['value'] = "blf";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-presence_watcher";
+ $vendors[$y]['functions'][$z]['name'] = "presence watcher";
+ $vendors[$y]['functions'][$z]['value'] = "presence watcher";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-eventlist_blf";
+ $vendors[$y]['functions'][$z]['name'] = "eventlist blf";
+ $vendors[$y]['functions'][$z]['value'] = "eventlist blf";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-speed_dial_active";
+ $vendors[$y]['functions'][$z]['name'] = "speed dial active";
+ $vendors[$y]['functions'][$z]['value'] = "speed dial active";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-dial_dtmf";
+ $vendors[$y]['functions'][$z]['name'] = "dial dtmf";
+ $vendors[$y]['functions'][$z]['value'] = "dial dtmf";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-voicemail";
+ $vendors[$y]['functions'][$z]['name'] = "voicemail";
+ $vendors[$y]['functions'][$z]['value'] = "voicemail";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-call_return";
+ $vendors[$y]['functions'][$z]['name'] = "call return";
+ $vendors[$y]['functions'][$z]['value'] = "call return";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-transfer";
+ $vendors[$y]['functions'][$z]['name'] = "transfer";
+ $vendors[$y]['functions'][$z]['value'] = "transfer";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-call_park";
+ $vendors[$y]['functions'][$z]['name'] = "call park";
+ $vendors[$y]['functions'][$z]['value'] = "call park";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-intercom";
+ $vendors[$y]['functions'][$z]['name'] = "intercom";
+ $vendors[$y]['functions'][$z]['value'] = "intercom";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-ldap_search";
+ $vendors[$y]['functions'][$z]['name'] = "ldap search";
+ $vendors[$y]['functions'][$z]['value'] = "ldap search";
+
+ $y++; //vendors array index
+ $z=0; //functions array index
+ $vendors[$y]['name'] = "mitel";
+ $vendors[$y]['functions'][$z]['label'] = "label-not_programmed";
+ $vendors[$y]['functions'][$z]['name'] = "not_programmed";
+ $vendors[$y]['functions'][$z]['value'] = "0";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-speed_dial";
+ $vendors[$y]['functions'][$z]['name'] = "speed_dial";
+ $vendors[$y]['functions'][$z]['value'] = "1";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-shared_line";
+ $vendors[$y]['functions'][$z]['name'] = "shared_line";
+ $vendors[$y]['functions'][$z]['value'] = "5";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-line";
+ $vendors[$y]['functions'][$z]['name'] = "line";
+ $vendors[$y]['functions'][$z]['value'] = "6";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-call_log";
+ $vendors[$y]['functions'][$z]['name'] = "call_log";
+ $vendors[$y]['functions'][$z]['value'] = "2";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-phone_book";
+ $vendors[$y]['functions'][$z]['name'] = "phone_book";
+ $vendors[$y]['functions'][$z]['value'] = "15";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-forward";
+ $vendors[$y]['functions'][$z]['name'] = "forward";
+ $vendors[$y]['functions'][$z]['value'] = "16";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-dnd";
+ $vendors[$y]['functions'][$z]['name'] = "dnd";
+ $vendors[$y]['functions'][$z]['value'] = "17";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-advisory_message";
+ $vendors[$y]['functions'][$z]['name'] = "advisory_message";
+ $vendors[$y]['functions'][$z]['value'] = "3";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-pc_application";
+ $vendors[$y]['functions'][$z]['name'] = "pc_application";
+ $vendors[$y]['functions'][$z]['value'] = "18";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-headset_on_off";
+ $vendors[$y]['functions'][$z]['name'] = "headset_on_off";
+ $vendors[$y]['functions'][$z]['value'] = "4";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-rss_feed";
+ $vendors[$y]['functions'][$z]['name'] = "rss_feed";
+ $vendors[$y]['functions'][$z]['value'] = "19";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-speed_dial_blf";
+ $vendors[$y]['functions'][$z]['name'] = "speed_dial_blf";
+ $vendors[$y]['functions'][$z]['value'] = "27";
+ $z++;
+ $vendors[$y]['functions'][$z]['label'] = "label-url";
+ $vendors[$y]['functions'][$z]['name'] = "url";
+ $vendors[$y]['functions'][$z]['value'] = "19";
+ /*
+ 0 - not programmed
+ 1 - speed dial
+ 2 - callLog
+ 3 - advisoryMsg (on/off)
+ 4 - headset(on/off)
+ 5 - shared line
+ 6 - Line 1
+ 7 - Line 2
+ 8 - Line 3
+ 9 - Line 4
+ 10 - Line 5
+ 11 - Line 6
+ 12 - Line 7
+ 13 - Line 8
+ 15 - phonebook
+ 16 - call forwarding
+ 17 - do not disturb
+ 18 - PC Application
+ 19 - RSS Feed URL / Branding /Notes
+ 21 - Superkey (5304 set only)
+ 22 - Redial key (5304 set only)
+ 23 - Hold key (5304 set only)
+ 24 - Trans/Conf key (5304 set only)
+ 25 - Message key (5304 set only)
+ 26 - Cancel key (5304 set only)
+ 27 - Speed Dial & BLF
+
+ Mitel web interface shows html_application
+ */
+
+ /*
+ echo "\n";
+ foreach ($vendors as $vendor) {
+ //print_r($vendor);
+ $vendor = $vendor['name'];
+ echo "$vendor
\n";
+ $functions = $vendor['functions'];
+ foreach ($vendor['functions'] as $type) {
+ echo "
\n";
+ echo "label: ".$type['label']."\n";
+ echo "name: ".$type['name']."\n";
+ echo "value: ".$type['value']."\n";
+ }
+ }
+ echo "\n";
+ */
+
+ /*
+ //select
+ $device_vendor = 'yealink';
+ $device_key_type = '16';
+ echo "\n";
+ */
+
?>
\ No newline at end of file
diff --git a/app/devices/app_defaults.php b/app/devices/app_defaults.php
index 1c2ef71402..5326e7aaa7 100644
--- a/app/devices/app_defaults.php
+++ b/app/devices/app_defaults.php
@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane
- Portions created by the Initial Developer are Copyright (C) 2008-2015
+ Portions created by the Initial Developer are Copyright (C) 2008-2016
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -49,6 +49,66 @@ if ($domains_processed == 1) {
$db->exec(check_sql($sql));
}
unset($device_keys, $sql);
+
+ //add device vendor functions to the database
+ $sql = "select count(*) as num_rows from v_device_vendors; ";
+ $prep_statement = $db->prepare($sql);
+ if ($prep_statement) {
+ $prep_statement->execute();
+ $row = $prep_statement->fetch(PDO::FETCH_ASSOC);
+ if ($row['num_rows'] == 0) {
+ //get the vendor array
+ require_once $_SERVER["DOCUMENT_ROOT"].'/'.PROJECT_PATH.'/app/devices/app_config.php';
+
+ //process the array
+ foreach ($vendors as $vendor) {
+
+ //insert the data into the database
+ $device_vendor_uuid = uuid();
+ $sql = "insert into v_device_vendors ";
+ $sql .= "(";
+ $sql .= "device_vendor_uuid, ";
+ $sql .= "name, ";
+ $sql .= "enabled ";
+ $sql .= ") ";
+ $sql .= "values ";
+ $sql .= "( ";
+ $sql .= "'".$device_vendor_uuid."', ";
+ $sql .= "'".$vendor['name']."', ";
+ $sql .= "'true' ";
+ $sql .= ");";
+ //echo $sql."\n";
+ $db->exec(check_sql($sql));
+ unset($sql);
+
+ //add the vendor functions
+ foreach ($vendor['functions'] as $function) {
+ $device_vendor_function_uuid = uuid();
+ $sql = "insert into v_device_vendor_functions ";
+ $sql .= "(";
+ $sql .= "device_vendor_uuid, ";
+ $sql .= "device_vendor_function_uuid, ";
+ $sql .= "name, ";
+ $sql .= "value, ";
+ $sql .= "enabled, ";
+ $sql .= "description ";
+ $sql .= ") ";
+ $sql .= "values ";
+ $sql .= "( ";
+ $sql .= "'".$device_vendor_uuid."', ";
+ $sql .= "'".$device_vendor_function_uuid."', ";
+ $sql .= "'".$function['name']."', ";
+ $sql .= "'".$function['value']."', ";
+ $sql .= "'true', ";
+ $sql .= "'".$function['description']."' ";
+ $sql .= ");";
+ //echo $sql."\n";
+ $db->exec(check_sql($sql));
+ unset($sql);
+ }
+ }
+ } //if num_rows
+ } //if prep_statement
}
?>
\ No newline at end of file
diff --git a/app/devices/app_languages.php b/app/devices/app_languages.php
index d5f8cb8785..d8f78a5c54 100644
--- a/app/devices/app_languages.php
+++ b/app/devices/app_languages.php
@@ -1,5 +1,18 @@
+//Device Vendors
+$text['title-device_vendors']['en-us'] = "Vendors";
+$text['title-device_vendors']['es-cl'] = "Proveedor";
+$text['title-device_vendors']['pt-pt'] = "Fabricante";
+$text['title-device_vendors']['fr-fr'] = "Fabriquant";
+$text['title-device_vendors']['pt-br'] = "Fabricante";
+$text['title-device_vendors']['pl'] = "Producent";
+$text['title-device_vendors']['uk'] = "";
+$text['title-device_vendors']['sv-se'] = "Tillverkare";
+$text['title-device_vendors']['de-at'] = "Hersteller";
+$text['title-device_vendors']['ar-eg'] = "";
+$text['title-device_vendors']['he'] = "";
+
+$text['title-device_vendor']['en-us'] = "Vendor";
+$text['title-device_vendor']['es-cl'] = "Proveedor";
+$text['title-device_vendor']['pt-pt'] = "Fabricante";
+$text['title-device_vendor']['fr-fr'] = "Fabriquant";
+$text['title-device_vendor']['pt-br'] = "Fabricante";
+$text['title-device_vendor']['pl'] = "Producent";
+$text['title-device_vendor']['uk'] = "";
+$text['title-device_vendor']['sv-se'] = "Tillverkare";
+$text['title-device_vendor']['de-at'] = "Hersteller";
+$text['title-device_vendor']['ar-eg'] = "";
+$text['title-device_vendor']['he'] = "";
+
+$text['title_description-device_vendor']['en-us'] = 'Defines the list of vendors used with provisioning devices.';
+$text['title_description-device_vendor']['es-cl'] = '';
+$text['title_description-device_vendor']['pt-pt'] = '';
+$text['title_description-device_vendor']['fr-fr'] = '';
+$text['title_description-device_vendor']['pt-br'] = '';
+$text['title_description-device_vendor']['pl'] = '';
+$text['title_description-device_vendor']['uk'] = '';
+$text['title_description-device_vendor']['sv-se'] = '';
+$text['title_description-device_vendor']['de-at'] = '';
+$text['title_description-device_vendor']['ar-eg'] = '';
+$text['title_description-device_vendor']['he'] = '';
+
+?>
\ No newline at end of file
diff --git a/app/device_vendors/device_vendor_delete.php b/app/devices/device_vendor_delete.php
similarity index 100%
rename from app/device_vendors/device_vendor_delete.php
rename to app/devices/device_vendor_delete.php
diff --git a/app/device_vendors/device_vendor_edit.php b/app/devices/device_vendor_edit.php
similarity index 100%
rename from app/device_vendors/device_vendor_edit.php
rename to app/devices/device_vendor_edit.php
diff --git a/app/device_vendors/device_vendor_function_delete.php b/app/devices/device_vendor_function_delete.php
similarity index 100%
rename from app/device_vendors/device_vendor_function_delete.php
rename to app/devices/device_vendor_function_delete.php
diff --git a/app/device_vendors/device_vendor_function_edit.php b/app/devices/device_vendor_function_edit.php
similarity index 100%
rename from app/device_vendors/device_vendor_function_edit.php
rename to app/devices/device_vendor_function_edit.php
diff --git a/app/device_vendors/device_vendor_functions.php b/app/devices/device_vendor_functions.php
similarity index 100%
rename from app/device_vendors/device_vendor_functions.php
rename to app/devices/device_vendor_functions.php
diff --git a/app/device_vendors/device_vendors.php b/app/devices/device_vendors.php
similarity index 100%
rename from app/device_vendors/device_vendors.php
rename to app/devices/device_vendors.php
diff --git a/app/devices/devices.php b/app/devices/devices.php
index 2d231cd293..5f9a775fc1 100644
--- a/app/devices/devices.php
+++ b/app/devices/devices.php
@@ -178,6 +178,9 @@
echo " \n";
}
}
+ if (permission_exists('device_vendor_view')) {
+ echo " ";
+ }
if (permission_exists('device_profile_view')) {
echo " ";
}
diff --git a/resources/app_languages.php b/resources/app_languages.php
index 74643fddd8..0a3c0cd2aa 100644
--- a/resources/app_languages.php
+++ b/resources/app_languages.php
@@ -853,7 +853,18 @@ $text['option-false']['de-at'] = "Aus";
//description
-$text['description-value']['en-us'] = "Enter the value of this setting.";
+$text['description-name']['en-us'] = "Enter the name.";
+$text['description-name']['es-cl'] = "";
+$text['description-name']['pt-pt'] = "";
+$text['description-name']['fr-fr'] = "";
+$text['description-name']['nl-nl'] = "";
+$text['description-name']['pt-br'] = "";
+$text['description-name']['pl'] = "";
+$text['description-name']['sv-se'] = "";
+$text['description-name']['uk'] = "";
+$text['description-name']['de-at'] = "";
+
+$text['description-value']['en-us'] = "Enter the value.";
$text['description-value']['es-cl'] = "Ingrese el valor de esta configuración";
$text['description-value']['pt-pt'] = "Introduza o valor desta definição.";
$text['description-value']['fr-fr'] = "Entrer la valeur de ce paramètre.";
@@ -908,4 +919,22 @@ $text['description-description']['sv-se'] = "Fyll i en beskrivning, om nödvänd
$text['description-description']['uk'] = "Введіть опис, якщо це необхідно.";
$text['description-description']['de-at'] = "Falls gewünscht, geben Sie eine Beschreibung an.";
-?>
+$text['description-enabled']['en-us'] = "";
+$text['description-enabled']['es-cl'] = "";
+$text['description-enabled']['pt-pt'] = "";
+$text['description-enabled']['fr-fr'] = "";
+$text['description-enabled']['pt-br'] = "";
+$text['description-enabled']['pl'] = "";
+$text['description-enabled']['uk'] = "";
+$text['description-enabled']['sv-se'] = "";
+$text['description-enabled']['ro'] = "";
+$text['description-enabled']['de-at'] = "";
+$text['description-enabled']['ar-eg'] = "";
+$text['description-enabled']['he'] = "";
+
+$text['description-description']['en-us'] = 'Enter the description.';
+$text['description-description']['es-cl'] = '';
+$text['description-description']['pt-pt'] = '';
+$text['description-description']['fr-fr'] = '';
+
+?>
\ No newline at end of file