Fix outbound call result status

This commit is contained in:
FusionPBX 2023-03-15 13:30:53 -06:00 committed by GitHub
parent 07280b0754
commit 6d114f0d11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -686,6 +686,7 @@
}
else if ($row['direction'] == 'outbound') {
if ($row['answer_stamp'] != '' && $row['bridge_uuid'] != '') { $call_result = 'answered'; }
else if ($row['hangup_cause'] == 'NORMAL_CLEARING') { $call_result = 'answered'; }
else if ($row['answer_stamp'] == '' && $row['bridge_uuid'] != '') { $call_result = 'cancelled'; }
else { $call_result = 'failed'; }
}