Add fax_status sending

While in sending mode it will not send again. The fax hangup hook will update the status to trying again if the fax fails or is set to failed if it reaches max tries.
This commit is contained in:
FusionPBX 2023-04-11 14:01:54 -06:00 committed by GitHub
parent 00364f318c
commit d662a641e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 13 deletions

View File

@ -290,18 +290,6 @@
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;
}
//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 = '';
@ -363,7 +351,7 @@
$fax_instance_id = pathinfo($fax_file, PATHINFO_FILENAME);
//set the fax status
$fax_status = 'trying';
$fax_status = 'sending';
//update the database to say status to trying and set the command
$array['fax_queue'][0]['fax_queue_uuid'] = $fax_queue_uuid;