From 4cdddba430212dc6427d963cb324b51670b8eca8 Mon Sep 17 00:00:00 2001
From: chansizzle <14916599+chansizzle@users.noreply.github.com>
Date: Thu, 30 May 2024 17:58:05 -0600
Subject: [PATCH] Add suggested extension ranges (#6871)
---
app/call_centers/app_config.php | 8 ++++++++
app/call_centers/call_center_queue_edit.php | 4 ++--
app/call_flows/app_config.php | 10 ++++++++++
app/call_flows/call_flow_edit.php | 4 ++--
app/conference_centers/app_config.php | 8 ++++++++
app/conference_centers/conference_center_edit.php | 4 ++--
app/conferences/app_config.php | 10 ++++++++++
app/conferences/conference_edit.php | 2 +-
app/extensions/app_config.php | 8 ++++++++
app/extensions/extension_edit.php | 2 +-
app/fax/app_config.php | 10 +++++++++-
app/fax/fax_edit.php | 2 +-
app/ivr_menus/app_config.php | 8 ++++++++
app/ivr_menus/ivr_menu_edit.php | 2 +-
app/ring_groups/app_config.php | 8 ++++++++
app/ring_groups/ring_group_edit.php | 2 +-
app/time_conditions/app_config.php | 9 +++++++++
app/time_conditions/time_condition_edit.php | 2 +-
18 files changed, 90 insertions(+), 13 deletions(-)
diff --git a/app/call_centers/app_config.php b/app/call_centers/app_config.php
index 152a5d3d58..72d5a2c2a5 100644
--- a/app/call_centers/app_config.php
+++ b/app/call_centers/app_config.php
@@ -218,6 +218,14 @@
$apps[$x]['default_settings'][$y]['default_setting_value'] = "\${sip_from_user}-\${sip_to_user}-\${strftime(%Y)}\${strftime(%b)}\${strftime(%d)}.\${record_ext}";
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Custom name for call recording. Options: \${record_ext}, \${sip_from_user}, \${sip_to_user}, \${caller_id_number}, \${uuid}";
+ $y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "4c939d81-7192-4d9a-b7c4-76695a005d4f";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "call_center";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "extension_range";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "400-499";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the suggested extension range(s) for call center queues";
//cache details
$apps[$x]['cache']['key'] = "dialplan.\${domain_name}";
diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php
index dcb0ae8203..6bbe238971 100644
--- a/app/call_centers/call_center_queue_edit.php
+++ b/app/call_centers/call_center_queue_edit.php
@@ -773,7 +773,7 @@
echo " ".$text['label-extension']."\n";
echo "\n";
echo "
\n";
- echo " \n";
+ echo " \n";
echo " \n";
echo $text['description-extension']."\n";
echo " | \n";
@@ -1428,4 +1428,4 @@
//include the footer
require_once "resources/footer.php";
-?>
\ No newline at end of file
+?>
diff --git a/app/call_flows/app_config.php b/app/call_flows/app_config.php
index 43fed6dd87..8c50057782 100644
--- a/app/call_flows/app_config.php
+++ b/app/call_flows/app_config.php
@@ -91,6 +91,16 @@
$apps[$x]['permissions'][$y]['groups'][] = "admin";
$y++;
+ //default settings
+ $y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "425b6aed-5039-490a-ba31-e49aa57b5902";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "call_flow";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "extension_range";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "30-39";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the suggested extension range(s) for call flows";
+
//cache details
$apps[$x]['cache']['key'] = "dialplan.\${call_flow_context}";
diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php
index 794b32d846..44a3538c07 100644
--- a/app/call_flows/call_flow_edit.php
+++ b/app/call_flows/call_flow_edit.php
@@ -476,7 +476,7 @@
echo " ".$text['label-call_flow_extension']."\n";
echo "\n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n";
echo $text['description-call_flow_extension']."\n";
echo " | \n";
@@ -806,4 +806,4 @@
//include the footer
require_once "resources/footer.php";
-?>
\ No newline at end of file
+?>
diff --git a/app/conference_centers/app_config.php b/app/conference_centers/app_config.php
index 185d132473..59b215b11c 100644
--- a/app/conference_centers/app_config.php
+++ b/app/conference_centers/app_config.php
@@ -217,6 +217,14 @@
$apps[$x]['default_settings'][$y]['default_setting_value'] = "false";
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Request the account ID.";
+ $y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "d93351de-8446-47ee-acdb-05cf340b8803";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "conference_center";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "extension_range";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "200-299";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the suggested extension range(s) for conference centers";
//cache details
$apps[$x]['cache']['key'] = "dialplan.\${domain_name}";
diff --git a/app/conference_centers/conference_center_edit.php b/app/conference_centers/conference_center_edit.php
index c7c36e94d4..248ea50149 100644
--- a/app/conference_centers/conference_center_edit.php
+++ b/app/conference_centers/conference_center_edit.php
@@ -356,7 +356,7 @@
echo " ".$text['label-conference_center_extension']."\n";
echo "\n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n";
echo $text['description-conference_center_extension']."\n";
echo " | \n";
@@ -492,4 +492,4 @@
//include the footer
require_once "resources/footer.php";
-?>
\ No newline at end of file
+?>
diff --git a/app/conferences/app_config.php b/app/conferences/app_config.php
index 1bc1315597..3121cb00da 100644
--- a/app/conferences/app_config.php
+++ b/app/conferences/app_config.php
@@ -100,6 +100,16 @@
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$apps[$x]['permissions'][$y]['groups'][] = "admin";
+ //default settings
+ $y=0;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "dbc34323-28ca-45b2-a3e1-b74f8ed54b7c";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "conference";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "extension_range";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "200-299";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the suggested extension range(s) for simple conferences";
+
//cache details
$apps[$x]['cache']['key'] = "dialplan.\${domain_name}";
diff --git a/app/conferences/conference_edit.php b/app/conferences/conference_edit.php
index df1d31c32e..559897bfe8 100644
--- a/app/conferences/conference_edit.php
+++ b/app/conferences/conference_edit.php
@@ -405,7 +405,7 @@
echo " ".$text['label-extension']."\n";
echo "\n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n";
echo "".$text['description-extension']."\n";
echo " | \n";
diff --git a/app/extensions/app_config.php b/app/extensions/app_config.php
index 7340c6f91b..eb26b75879 100644
--- a/app/extensions/app_config.php
+++ b/app/extensions/app_config.php
@@ -350,6 +350,14 @@
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "";
$y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "f5650002-e150-438c-8983-1379cf2cd04f";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "extension";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "extension_range";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "100-199";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the suggested extension range(s) for extensions";
+ $y++;
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "db521639-5c26-4cba-acc7-e8d6fe86657c";
$apps[$x]['default_settings'][$y]['default_setting_category'] = "extension";
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "call_timeout";
diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php
index af2c09a3c7..a12b031bae 100644
--- a/app/extensions/extension_edit.php
+++ b/app/extensions/extension_edit.php
@@ -1166,7 +1166,7 @@
echo "\n";
echo "\n";
if ($action == "add" || permission_exists("extension_extension")) {
- echo " \n";
+ echo " \n";
echo " \n"; //help defeat browser auto-fill
echo " \n";
echo $text['description-extension']."\n";
diff --git a/app/fax/app_config.php b/app/fax/app_config.php
index 1637b5a021..f0bb8b4682 100644
--- a/app/fax/app_config.php
+++ b/app/fax/app_config.php
@@ -485,6 +485,14 @@
$apps[$x]['default_settings'][$y]['default_setting_value'] = "true";
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "";
+ $y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "dd945d20-0e7d-40d9-8512-641e230c76d3";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "fax";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "extension_range";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "300-399";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the suggested extension range(s) for fax servers";
//schema details
$y=0;
@@ -939,4 +947,4 @@
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
-?>
+?>
\ No newline at end of file
diff --git a/app/fax/fax_edit.php b/app/fax/fax_edit.php
index 87bc37c9de..6b73727309 100644
--- a/app/fax/fax_edit.php
+++ b/app/fax/fax_edit.php
@@ -547,7 +547,7 @@
echo " ".$text['label-extension']."\n";
echo " | \n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n";
echo "".$text['description-extension']."\n";
echo " | \n";
diff --git a/app/ivr_menus/app_config.php b/app/ivr_menus/app_config.php
index d8b2357bde..d6e66da5a0 100644
--- a/app/ivr_menus/app_config.php
+++ b/app/ivr_menus/app_config.php
@@ -217,6 +217,14 @@
$apps[$x]['default_settings'][$y]['default_setting_value'] = "true";
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Add answer to IVR Menu dialplan.";
+ $y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "4f38d1d6-0d7f-4793-bf37-670b19951500";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "ivr_menu";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "extension_range";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "500-599";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the suggested extension range(s) for IVRs";
//cache details
$apps[$x]['cache']['key'] = "dialplan.\${ivr_menu_context}";
diff --git a/app/ivr_menus/ivr_menu_edit.php b/app/ivr_menus/ivr_menu_edit.php
index a58096d7c8..6d917ec0c6 100644
--- a/app/ivr_menus/ivr_menu_edit.php
+++ b/app/ivr_menus/ivr_menu_edit.php
@@ -770,7 +770,7 @@
echo " ".$text['label-extension']."\n";
echo "\n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n";
echo $text['description-extension']."\n";
echo " | \n";
diff --git a/app/ring_groups/app_config.php b/app/ring_groups/app_config.php
index dafdfc175d..29a1bd042c 100644
--- a/app/ring_groups/app_config.php
+++ b/app/ring_groups/app_config.php
@@ -208,6 +208,14 @@
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Enable or disable the feature to add a range of extensions.";
$y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "b8fbc27a-e44d-4b27-879f-33ba50e24647";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "ring_group";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "extension_range";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "700-799";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the suggested extension range(s) for ring groups";
+ $y++;
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "d25c1e2b-4098-408e-959b-c789ba4691e1";
$apps[$x]['default_settings'][$y]['default_setting_category'] = "ring_group";
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "diversion_enabled";
diff --git a/app/ring_groups/ring_group_edit.php b/app/ring_groups/ring_group_edit.php
index 8dc69508b3..ac431f71b1 100644
--- a/app/ring_groups/ring_group_edit.php
+++ b/app/ring_groups/ring_group_edit.php
@@ -799,7 +799,7 @@
echo " ".$text['label-extension']."\n";
echo "\n";
echo "\n";
- echo " \n";
+ echo " \n";
echo " \n";
echo $text['description-extension']."\n";
echo " | \n";
diff --git a/app/time_conditions/app_config.php b/app/time_conditions/app_config.php
index dcc3223e04..0729d97154 100644
--- a/app/time_conditions/app_config.php
+++ b/app/time_conditions/app_config.php
@@ -393,6 +393,15 @@
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
$apps[$x]['default_settings'][$y]['default_setting_description'] = 'Canada Holiday';
+ $y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "c73fa4f6-aed5-49a3-8726-4c1d94847302";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "time_conditions";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "extension_range";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "800-899";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the suggested extension range(s) for time conditions";
+
//cache details
$apps[$x]['cache']['key'] = "dialplan.\${dialplan_context}";
diff --git a/app/time_conditions/time_condition_edit.php b/app/time_conditions/time_condition_edit.php
index 2d60b49bbb..bb9292d8c6 100644
--- a/app/time_conditions/time_condition_edit.php
+++ b/app/time_conditions/time_condition_edit.php
@@ -998,7 +998,7 @@ echo "\n";
echo " ".$text['label-extension']."\n";
echo " | \n";
echo "\n";
-echo " \n";
+echo " \n";
echo " \n";
echo " ".$text['description-extension']." \n";
echo " | \n";