Add contact_in_ping to Gateways (#6439)
* Add contact_in_ping to Gateways * Update gateway_edit.php * Update gateways.php * Update app_languages.php * Update sofia.conf.lua
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2020
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2022
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
@@ -96,6 +96,7 @@
|
||||
$ping = $_POST["ping"];
|
||||
$ping_min = $_POST["ping_min"];
|
||||
$ping_max = $_POST["ping_max"];
|
||||
$contact_in_ping = $_POST["contact_in_ping"];
|
||||
$channels = $_POST["channels"];
|
||||
$caller_id_in_from = $_POST["caller_id_in_from"];
|
||||
$supress_cng = $_POST["supress_cng"];
|
||||
@@ -182,6 +183,7 @@
|
||||
$array['gateways'][$x]["ping"] = $ping;
|
||||
$array['gateways'][$x]["ping_min"] = $ping_min;
|
||||
$array['gateways'][$x]["ping_max"] = $ping_max;
|
||||
$array['gateways'][$x]["contact_in_ping"] = $contact_in_ping;
|
||||
$array['gateways'][$x]["channels"] = $channels;
|
||||
$array['gateways'][$x]["caller_id_in_from"] = $caller_id_in_from;
|
||||
$array['gateways'][$x]["supress_cng"] = $supress_cng;
|
||||
@@ -285,6 +287,7 @@
|
||||
$ping = $row["ping"];
|
||||
$ping_min = $row["ping_min"];
|
||||
$ping_max = $row["ping_max"];
|
||||
$contact_in_ping = $row["contact_in_ping"];
|
||||
$channels = $row["channels"];
|
||||
$caller_id_in_from = $row["caller_id_in_from"];
|
||||
$supress_cng = $row["supress_cng"];
|
||||
@@ -734,6 +737,31 @@
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$text['label-contact_in_ping']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='contact_in_ping'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if ($contact_in_ping == "true") {
|
||||
echo " <option value='true' selected='selected'>".$text['label-true']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='true'>".$text['label-true']."</option>\n";
|
||||
}
|
||||
if ($contact_in_ping == "false") {
|
||||
echo " <option value='false' selected='selected'>".$text['label-false']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='false'>".$text['label-false']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-contact_in_ping']."\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";
|
||||
@@ -882,4 +910,4 @@
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user