diff --git a/app/scripts/resources/scripts/app/fax/resources/scripts/hangup_tx.lua b/app/scripts/resources/scripts/app/fax/resources/scripts/hangup_tx.lua index 298c236283..ba1a5da83d 100644 --- a/app/scripts/resources/scripts/app/fax/resources/scripts/hangup_tx.lua +++ b/app/scripts/resources/scripts/app/fax/resources/scripts/hangup_tx.lua @@ -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 ";