Always update the fax_status

We want to show fax_status to be updated to show busy if the call was busy.
This commit is contained in:
FusionPBX
2023-03-28 12:46:54 -06:00
committed by GitHub
parent a1505ea945
commit d03fca2970

View File

@@ -339,13 +339,11 @@
dbh:query(sql, params);
--update the email queue status
if (fax_success == '1') then
sql = "update v_fax_queue ";
sql = sql .. "set fax_status = :fax_status, fax_log_uuid = :fax_log_uuid ";
sql = sql .. "where fax_queue_uuid = :fax_queue_uuid ";
local params = {fax_queue_uuid = fax_queue_uuid, fax_status = 'sent', fax_log_uuid = uuid}
dbh:query(sql, params);
end
sql = "update v_fax_queue ";
sql = sql .. "set fax_status = :fax_status, fax_log_uuid = :fax_log_uuid ";
sql = sql .. "where fax_queue_uuid = :fax_queue_uuid ";
local params = {fax_queue_uuid = fax_queue_uuid, fax_status = fax_status, fax_log_uuid = uuid}
dbh:query(sql, params);
--prepare base64
if (storage_type == "base64") then