From be841cd17abef2011002bc4c0bae3aab56a6e0ca Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 28 Jun 2022 11:06:19 -0600 Subject: [PATCH] Update fax_send.php --- app/fax_queue/resources/job/fax_send.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/fax_queue/resources/job/fax_send.php b/app/fax_queue/resources/job/fax_send.php index 92c1f92f47..452954a4e7 100644 --- a/app/fax_queue/resources/job/fax_send.php +++ b/app/fax_queue/resources/job/fax_send.php @@ -297,6 +297,12 @@ 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 = "";