Update fax_send.php
This commit is contained in:
parent
e525f6deaa
commit
f04aaa2f13
|
|
@ -766,7 +766,6 @@ if (!function_exists('fax_split_dtmf')) {
|
|||
$dial_string .= "fax_ident='" . $fax_caller_id_number . "',";
|
||||
$dial_string .= "fax_header='" . $fax_caller_id_name . "',";
|
||||
$dial_string .= "fax_file='" . $fax_file . "',";
|
||||
|
||||
foreach ($fax_numbers as $fax_number) {
|
||||
|
||||
$fax_number = trim($fax_number);
|
||||
|
|
@ -774,7 +773,6 @@ if (!function_exists('fax_split_dtmf')) {
|
|||
|
||||
//prepare the fax command
|
||||
$route_array = outbound_route_to_bridge($_SESSION['domain_uuid'], $fax_prefix . $fax_number);
|
||||
|
||||
if (count($route_array) == 0) {
|
||||
//send the internal call to the registered extension
|
||||
$fax_uri = "user/".$fax_number."@".$_SESSION['domain_name'];
|
||||
|
|
@ -805,7 +803,7 @@ if (!function_exists('fax_split_dtmf')) {
|
|||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||
if ($fp) {
|
||||
$cmd = "api originate " . $dial_string;
|
||||
// echo($cmd . "<br/>\n");
|
||||
|
||||
//send the command to event socket
|
||||
$response = event_socket_request($fp, $cmd);
|
||||
$response = str_replace("\n", "", $response);
|
||||
|
|
@ -831,7 +829,7 @@ if (!function_exists('fax_split_dtmf')) {
|
|||
copy($dir_fax_temp.'/'.$fax_instance_uuid.".pdf ", $dir_fax_sent.'/'.$fax_instance_uuid.".pdf");
|
||||
}
|
||||
|
||||
if (!$included) {
|
||||
if (!$included && is_uuid($fax_uuid)) {
|
||||
//redirect the browser
|
||||
message::add($response, 'default');
|
||||
if (isset($_SESSION['fax']['send_mode']['text']) && $_SESSION['fax']['send_mode']['text'] == 'queue') {
|
||||
|
|
@ -1175,4 +1173,5 @@ function showgrid($pdf) {
|
|||
}
|
||||
}
|
||||
*/
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue