diff --git a/app/destinations/destinations_edit.php b/app/destinations/destinations_edit.php index 7798a60259..0e1bf37b6c 100644 --- a/app/destinations/destinations_edit.php +++ b/app/destinations/destinations_edit.php @@ -51,6 +51,7 @@ else { $destination_caller_id_name = check_str($_POST["destination_caller_id_name"]); $destination_caller_id_number = check_str($_POST["destination_caller_id_number"]); $destination_context = check_str($_POST["destination_context"]); + $fax_uuid = check_str($_POST["fax_uuid"]); $destination_enabled = check_str($_POST["destination_enabled"]); $destination_description = check_str($_POST["destination_description"]); } @@ -99,6 +100,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "destination_caller_id_name, "; $sql .= "destination_caller_id_number, "; $sql .= "destination_context, "; + $sql .= "fax_uuid, "; $sql .= "destination_enabled, "; $sql .= "destination_description "; $sql .= ")"; @@ -114,6 +116,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "'$destination_caller_id_name', "; $sql .= "'$destination_caller_id_number', "; $sql .= "'$destination_context', "; + $sql .= "'$fax_uuid', "; $sql .= "'$destination_enabled', "; $sql .= "'$destination_description' "; $sql .= ")"; @@ -139,6 +142,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "destination_caller_id_name = '$destination_caller_id_name', "; $sql .= "destination_caller_id_number = '$destination_caller_id_number', "; $sql .= "destination_context = '$destination_context', "; + $sql .= "fax_uuid = '$fax_uuid', "; $sql .= "destination_enabled = '$destination_enabled', "; $sql .= "destination_description = '$destination_description' "; $sql .= "where domain_uuid = '$domain_uuid' "; @@ -173,6 +177,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $destination_caller_id_name = $row["destination_caller_id_name"]; $destination_caller_id_number = $row["destination_caller_id_number"]; $destination_context = $row["destination_context"]; + $fax_uuid = $row["fax_uuid"]; $destination_enabled = $row["destination_enabled"]; $destination_description = $row["destination_description"]; break; //limit to 1 row @@ -276,6 +281,33 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; + echo " Fax Destination:\n"; + echo "\n"; + echo "\n"; + $sql = "select * from v_fax "; + $sql .= "where domain_uuid = '".$_SESSION["domain_uuid"]."' "; + $sql .= "order by fax_name asc "; + $prep_statement = $db->prepare(check_sql($sql)); + $prep_statement->execute(); + $result = $prep_statement->fetchAll(PDO::FETCH_ASSOC); + echo " \n"; + unset ($prep_statement, $extension); + echo "
\n"; + echo " Select the fax destination to enable fax detection.\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo " Enabled:\n"; @@ -283,21 +315,20 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo " \n"; echo "
\n"; - echo "\n"; echo "\n"; echo "\n";