Add gateway ping-min/max params

This commit is contained in:
Greenbea
2020-11-11 01:15:46 -05:00
parent e5cf6bde51
commit 3f426baf62
4 changed files with 84 additions and 0 deletions
+28
View File
@@ -94,6 +94,8 @@
$retry_seconds = $_POST["retry_seconds"];
$extension = $_POST["extension"];
$ping = $_POST["ping"];
$ping_min = $_POST["ping_min"];
$ping_max = $_POST["ping_max"];
$channels = $_POST["channels"];
$caller_id_in_from = $_POST["caller_id_in_from"];
$supress_cng = $_POST["supress_cng"];
@@ -178,6 +180,8 @@
$array['gateways'][$x]["retry_seconds"] = $retry_seconds;
$array['gateways'][$x]["extension"] = $extension;
$array['gateways'][$x]["ping"] = $ping;
$array['gateways'][$x]["ping_min"] = $ping_min;
$array['gateways'][$x]["ping_max"] = $ping_max;
$array['gateways'][$x]["channels"] = $channels;
$array['gateways'][$x]["caller_id_in_from"] = $caller_id_in_from;
$array['gateways'][$x]["supress_cng"] = $supress_cng;
@@ -279,6 +283,8 @@
$retry_seconds = $row["retry_seconds"];
$extension = $row["extension"];
$ping = $row["ping"];
$ping_min = $row["ping_min"];
$ping_max = $row["ping_max"];
$channels = $row["channels"];
$caller_id_in_from = $row["caller_id_in_from"];
$supress_cng = $row["supress_cng"];
@@ -706,6 +712,28 @@
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " ".$text['label-ping_min']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='number' name='ping_min' maxlength='255' min='1' max='65535' step='1' value=\"".escape($ping_min)."\">\n";
echo "<br />\n";
echo $text['description-ping_min']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " ".$text['label-ping_max']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='number' name='ping_max' maxlength='255' min='1' max='65535' step='1' value=\"".escape($ping_max)."\">\n";
echo "<br />\n";
echo $text['description-ping_max']."\n";
echo "</td>\n";
echo "</tr>\n";
if (permission_exists('gateway_channels')) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";