From 37f780e4e91976203c9ed4b5a5907a9e3490ec70 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 31 Mar 2022 22:11:00 -0600 Subject: [PATCH] Add to the fax_queue_uuid common variables. --- app/fax/fax_send.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/fax/fax_send.php b/app/fax/fax_send.php index 193aaa91cb..1d1b10f529 100644 --- a/app/fax/fax_send.php +++ b/app/fax/fax_send.php @@ -658,8 +658,12 @@ if (!function_exists('fax_split_dtmf')) { $mailto_address = $mailto_address_user; } + //set the fax + $fax_queue_uuid = uuid(); + //send the fax $fax_file = $dir_fax_temp."/".$fax_instance_uuid.".tif"; + $common_variables .= "fax_queue_uuid='" . $fax_queue_uuid . "',"; $common_variables = "for_fax=1,"; $common_variables .= "accountcode='" . $fax_accountcode . "',"; $common_variables .= "sip_h_X-accountcode='" . $fax_accountcode . "',"; @@ -712,7 +716,6 @@ if (!function_exists('fax_split_dtmf')) { //add fax to the fax queue or send it directly if (isset($_SESSION['fax']['send_mode']['text']) && $_SESSION['fax']['send_mode']['text'] == 'queue') { //build an array to add the fax to the queue - $fax_queue_uuid = uuid(); $array['fax_queue'][0]['fax_queue_uuid'] = $fax_queue_uuid; $array['fax_queue'][0]['domain_uuid'] = $_SESSION['domain_uuid']; $array['fax_queue'][0]['fax_uuid'] = $fax_uuid;