0) { $i=0; foreach($a_dialplan_includes as $row) { if ($row["dialplanincludeid"] == $faxid) { $order = $row['order']; unset($a_dialplan_includes[$i]); } $i++; } } //delete the dialplan include details. aka. child data if (count($a_dialplan_includes_details) > 0) { $i=0; foreach($a_dialplan_includes_details as $row) { if ($row["dialplanincludeid"] == $faxid) { unset($a_dialplan_includes_details[$i]); } $i++; } } if (file_exists($v_conf_dir."/dialplan/default/".$order."_".$faxname.".xml")){ unlink($v_conf_dir."/dialplan/default/".$order."_".$faxname.".xml"); } //remove fax entries unset($a_fax[$_GET['id']]); write_config(); header("Location: v_fax.php"); exit; } } } if ($_GET['a'] == "download") { session_cache_limiter('public'); if ($_GET['type'] = "fax_file") { if (file_exists($dir_fax.$_GET['filename'])) { $fd = fopen($dir_fax.$_GET['filename'], "rb"); if ($_GET['t'] == "bin") { header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); header("Content-Description: File Transfer"); header('Content-Disposition: attachment; filename="'.$_GET['filename'].'"'); } else { $file_ext = substr($_GET['filename'], -3); if ($file_ext == "png") { header("Content-Type: image/png"); } } header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Content-Length: " . filesize($dir_fax.$_GET['filename'])); fpassthru($fd); } } exit; } else { //echo $dir_fax.$_GET['filename']; } if ($_GET['act'] == "del") { if ($_GET['type'] == 'fax_file') { //if ($a_fax[$_GET['id']]) { $tmp_file_array = split("\.",$_GET['filename']); $file_name = $tmp_file_array[0]; $file_ext = $tmp_file_array[1]; unlink_if_exists($dir_fax.$file_name.".pdf"); unlink_if_exists($dir_fax.$file_name.".png"); unlink_if_exists($dir_fax.$file_name.".tif"); //unset($a_fax[$_GET['id']]); write_config(); header("Location: v_fax.php"); exit; //} } } include("head.inc"); ?> $v_label: FAX

\n"; } ?>
"; //print_info_box_np("The FreeSWITCH fax have been changed.
You must apply the changes in order for them to take effect."); //echo"
"; //endif; ?>

FAX
To receive a FAX setup a fax extension and then direct the incoming FAX with a dedicated number or you can detect the FAX tone by using tone detection\n"; } else { echo "tone detection\n"; } ?> on the Public tab.


0) { foreach ($a_fax as $ent) { $a_fax[$i]['id'] = $i; $i++; } } //order the array function cmp_number($a, $b) { if ($a["faxextension"] > $b["faxextension"]) { return 1; } else { return 0; } } if (count($a_fax) > 0) { usort($a_fax, "cmp_number"); } $i = 0; if (count($a_fax) > 0) { foreach ($a_fax as $ent) { if (strlen($ent['faxextension']) > 0) { ?>
Extension Name Email Domain Description