added toll allow to fax server (#4936)

This commit is contained in:
agree
2019-12-08 22:37:12 -07:00
committed by FusionPBX
parent 8e018b1c68
commit d20a403679
4 changed files with 66 additions and 4 deletions
+15 -1
View File
@@ -107,6 +107,7 @@
$fax_email_outbound_authorized_senders = $_POST["fax_email_outbound_authorized_senders"];
$fax_caller_id_name = $_POST["fax_caller_id_name"];
$fax_caller_id_number = $_POST["fax_caller_id_number"];
$fax_toll_allow = $_POST["fax_toll_allow"];
$fax_forward_number = $_POST["fax_forward_number"];
if (strlen($fax_destination_number) == 0) {
$fax_destination_number = $fax_extension;
@@ -307,6 +308,7 @@
}
$array['fax'][0]['fax_caller_id_name'] = $fax_caller_id_name;
$array['fax'][0]['fax_caller_id_number'] = $fax_caller_id_number;
$array['fax'][0]['fax_toll_allow'] = $fax_toll_allow;
if ($action == "add" && strlen($fax_forward_number) > 0) {
$array['fax'][0]['fax_forward_number'] = $fax_forward_number;
}
@@ -398,6 +400,7 @@
$fax_email_outbound_authorized_senders = $row["fax_email_outbound_authorized_senders"];
$fax_caller_id_name = $row["fax_caller_id_name"];
$fax_caller_id_number = $row["fax_caller_id_number"];
$fax_toll_allow = $row["fax_toll_allow"];
$fax_forward_number = $row["fax_forward_number"];
$fax_description = $row["fax_description"];
$fax_send_greeting = $row["fax_send_greeting"];
@@ -615,6 +618,17 @@
echo "".$text['description-forward-number']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-toll_allow']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='fax_toll_allow' maxlength='20' min='0' step='1' value=\"".escape($fax_toll_allow)."\">\n";
echo "<br />\n";
echo "".$text['description-toll_allow']."\n";
echo "</td>\n";
echo "</tr>\n";
if (permission_exists('fax_user_view')) {
if ($action == "update") {
@@ -1019,4 +1033,4 @@
//show the footer
require_once "resources/footer.php";
?>
?>