From 301dc1501c52b4b7bafd698770da74d51a96fbae Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 4 Aug 2022 19:09:23 -0600 Subject: [PATCH] Eliminate faxes from missed calls and ring group destinations that didn't answer the call. --- app/xml_cdr/resources/classes/xml_cdr.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 4e867b05f4..08d24738b3 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -377,7 +377,16 @@ if (!class_exists('xml_cdr')) { if (isset($xml->variables->missed_call)) { $missed_call = $xml->variables->missed_call; } - elseif (isset($xml->variables->answer_stamp) && isset($xml->variables->bridge_uuid)) { + elseif (isset($xml->variables->fax_success)) { + $missed_call = 'false'; + } + elseif ($xml->variables->hangup_cause = 'LOSE_RACE') { + $missed_call = 'false'; + } + elseif ($xml->variables->hangup_cause = 'NO_ANSWER' && isset($xml->variables->originating_leg_uuid)) { + $missed_call = 'false'; + } + elseif (isset($xml->variables->answer_stamp)) { //answered call $missed_call = 'false'; }