Handle no answer for unset status

This commit is contained in:
FusionPBX 2023-12-27 13:08:15 -07:00 committed by GitHub
parent e36003f907
commit 4e622d9b10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -583,6 +583,12 @@ if (!class_exists('xml_cdr')) {
if (!isset($status) && in_array($xml->variables->last_bridge_hangup_cause, $failed_array)) {
$status = 'failed';
}
if ($xml->variables->cc_side == 'agent' && $xml->variables->billsec == 0) {
$status = 'no_answer';
}
if (!isset($status) && $xml->variables->billsec == 0) {
$status = 'no_answer';
}
//set the provider id
if (isset($xml->variables->provider_uuid)) {