From d662a641e67e9a1b745ad9a1e9c2ffbe293402a5 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 11 Apr 2023 14:01:54 -0600 Subject: [PATCH] Add fax_status sending While in sending mode it will not send again. The fax hangup hook will update the status to trying again if the fax fails or is set to failed if it reaches max tries. --- app/fax_queue/resources/job/fax_send.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/app/fax_queue/resources/job/fax_send.php b/app/fax_queue/resources/job/fax_send.php index dd94a4b8ba..b1b42d6f31 100644 --- a/app/fax_queue/resources/job/fax_send.php +++ b/app/fax_queue/resources/job/fax_send.php @@ -290,18 +290,6 @@ exit; } - //check if the uuid exists if it does then end the script - if (trim(event_socket_request($fp, "api uuid_exists ".$origination_uuid)) == 'true') { - echo "FAX job in progress.\n"; - exit; - } - - //check if the uuid exists if it does then end the script - if (trim(event_socket_request($fp, "api uuid_exists ".$origination_uuid)) == 'true') { - echo "FAX job in progress.\n"; - exit; - } - //fax options, first attempt use the fax variables from settings if ($fax_retry_count == 0) { $fax_options = ''; @@ -363,7 +351,7 @@ $fax_instance_id = pathinfo($fax_file, PATHINFO_FILENAME); //set the fax status - $fax_status = 'trying'; + $fax_status = 'sending'; //update the database to say status to trying and set the command $array['fax_queue'][0]['fax_queue_uuid'] = $fax_queue_uuid;