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
+1
View File
@@ -686,6 +686,7 @@
} }
else if ($row['direction'] == 'outbound') { else if ($row['direction'] == 'outbound') {
if ($row['answer_stamp'] != '' && $row['bridge_uuid'] != '') { $call_result = 'answered'; } 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 if ($row['answer_stamp'] == '' && $row['bridge_uuid'] != '') { $call_result = 'cancelled'; }
else { $call_result = 'failed'; } else { $call_result = 'failed'; }
} }