Add ring group skip active

This commit is contained in:
Mark Crane
2014-08-13 08:41:44 +00:00
parent 4c4ac5a7c3
commit b0c8b22833
3 changed files with 41 additions and 0 deletions
+27
View File
@@ -78,6 +78,7 @@ else {
$ring_group_timeout_action = check_str($_POST["ring_group_timeout_action"]);
$ring_group_cid_name_prefix = check_str($_POST["ring_group_cid_name_prefix"]);
$ring_group_ringback = check_str($_POST["ring_group_ringback"]);
$ring_group_skip_active = check_str($_POST["ring_group_skip_active"]);
$ring_group_enabled = check_str($_POST["ring_group_enabled"]);
$ring_group_description = check_str($_POST["ring_group_description"]);
$dialplan_uuid = check_str($_POST["dialplan_uuid"]);
@@ -326,6 +327,7 @@ else {
$ring_group_timeout_data = $row["ring_group_timeout_data"];
$ring_group_cid_name_prefix = $row["ring_group_cid_name_prefix"];
$ring_group_ringback = $row["ring_group_ringback"];
$ring_group_skip_active = $row["ring_group_skip_active"];
$ring_group_enabled = $row["ring_group_enabled"];
$ring_group_description = $row["ring_group_description"];
$dialplan_uuid = $row["dialplan_uuid"];
@@ -374,6 +376,7 @@ else {
}
//set defaults
if (strlen($ring_group_skip_active) == 0) { $ring_group_skip_active = 'false'; }
if (strlen($ring_group_enabled) == 0) { $ring_group_enabled = 'true'; }
//set the context for users that are not in the superadmin group
@@ -679,6 +682,30 @@ else {
echo " </td>";
echo " </tr>";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-skip_active'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='ring_group_skip_active'>\n";
if ($ring_group_skip_active == "true") {
echo " <option value='true' selected='selected'>".$text['option-true']."</option>\n";
}
else {
echo " <option value='true'>".$text['option-true']."</option>\n";
}
if ($ring_group_skip_active == "false") {
echo " <option value='false' selected='selected'>".$text['option-false']."</option>\n";
}
else {
echo " <option value='false'>".$text['option-false']."</option>\n";
}
echo " </select>\n";
echo "<br />\n";
echo $text['description-skip_active']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-enabled'].":\n";