Adjust fax_success if not equal to 1 then set to trying.

This commit is contained in:
FusionPBX 2022-04-20 23:44:12 -06:00 committed by GitHub
parent 54623d8d3b
commit 652f128f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -171,9 +171,10 @@
end
--fax sent successfully
fax_status = "";
if (fax_success == '1') then
fax_status = 'sent';
else
fax_status = 'trying';
end
--fax busy
@ -223,7 +224,7 @@
end
--update the email queue status
if (fax_status == 'sent') then
if (fax_success == '1') then
sql = "update v_fax_queue ";
sql = sql .. "set fax_status = :fax_status ";
sql = sql .. "where fax_queue_uuid = :fax_queue_uuid ";