Add destination_delay_max and destination_timeout_max
This commit is contained in:
parent
6f35c552e2
commit
4ca524b443
|
|
@ -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}';
|
||||
}
|
||||
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue