Add suggested extension ranges (#6871)

This commit is contained in:
chansizzle
2024-05-30 17:58:05 -06:00
committed by GitHub
parent d17300c308
commit 4cdddba430
18 changed files with 90 additions and 13 deletions

View File

@@ -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}";

View File

@@ -998,7 +998,7 @@ echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
echo " ".$text['label-extension']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='dialplan_number' id='dialplan_number' maxlength='255' value=\"".escape($dialplan_number ?? null)."\">\n";
echo " <input class='formfld' type='text' name='dialplan_number' id='dialplan_number' maxlength='255' value=\"".escape($dialplan_number ?? null)."\" required='required' placeholder='".$_SESSION['time_conditions']['extension_range']['text'] ?? ''."'>\n";
echo " <br />\n";
echo " ".$text['description-extension']."<br />\n";
echo "</td>\n";