mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add destination_delay_max and destination_timeout_max
This commit is contained in:
@@ -154,6 +154,22 @@
|
||||
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_description'] = "";
|
||||
$y++;
|
||||
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "9917d8e3-1c3c-4771-b2c6-e931c448d6e0";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_category'] = "ring_group";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "destination_delay_max";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_value'] = "999";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_description'] = "";
|
||||
$y++;
|
||||
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "c54fc772-7aa5-40de-8da8-39e0e707658e";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_category'] = "ring_group";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "destination_timeout_max";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_value'] = "999";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_description'] = "";
|
||||
$y++;
|
||||
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "de655030-ae71-4b53-8068-5cf0b14cf635";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_category'] = "limit";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "ring_groups";
|
||||
|
||||
@@ -500,6 +500,8 @@
|
||||
}
|
||||
|
||||
//set the default
|
||||
$destination_delay_max = $_SESSION['ring_group']['destination_delay_max']['numeric'];
|
||||
$destination_timeout_max = $_SESSION['ring_group']['destination_timeout_max']['numeric'];
|
||||
if (strlen($ring_group_ringback) == 0) {
|
||||
$ring_group_ringback = '${us-ring}';
|
||||
}
|
||||
@@ -696,7 +698,7 @@
|
||||
echo "<optgroup label=".$text['label-'.$key].">\n";
|
||||
$selected = false;
|
||||
foreach ($value as $row) {
|
||||
if ($ring_group_greeting == $row["value"]) {
|
||||
if ($ring_group_greeting == $row["value"]) {
|
||||
$selected = true;
|
||||
echo " <option value='".escape($row["value"])."' selected='selected'>".escape($row["name"])."</option>\n";
|
||||
}
|
||||
@@ -772,7 +774,7 @@
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <select name='ring_group_destinations[".$x."][destination_delay]' class='formfld' style='width:55px'>\n";
|
||||
$i=0;
|
||||
while ($i <= 999) {
|
||||
while ($i <= $destination_delay_max) {
|
||||
if ($i == $row['destination_delay']) {
|
||||
echo " <option value='$i' selected='selected'>$i</option>\n";
|
||||
}
|
||||
@@ -785,8 +787,9 @@
|
||||
echo " </td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <select name='ring_group_destinations[".$x."][destination_timeout]' class='formfld' style='width:55px'>\n";
|
||||
|
||||
$i = 5;
|
||||
while($i <= 999) {
|
||||
while($i <= $destination_timeout_max) {
|
||||
if ($i == $row['destination_timeout']) {
|
||||
echo " <option value='$i' selected='selected'>$i</option>\n";
|
||||
}
|
||||
@@ -1056,7 +1059,7 @@
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
|
||||
if (permission_exists("ring_group_context")) {
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
|
||||
Reference in New Issue
Block a user