From b5efee25c73123b30a8ba7da2cb225479aa32125 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 17 Jun 2025 12:56:48 -0600 Subject: [PATCH] Fix call center missed call Fixed this by changing the order of operations. Billsec greater than zero overrode missed call equal to true. --- app/xml_cdr/resources/classes/xml_cdr.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index d5b4d16015..12ca5f4032 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -545,15 +545,15 @@ //ring group or multi destination bridge statement $missed_call = 'false'; } + if (isset($xml->variables->billsec) && $xml->variables->billsec > 0) { + //answered call + $missed_call = 'false'; + } if (isset($xml->variables->cc_side) && $xml->variables->cc_side == 'member' && isset($xml->variables->cc_cause) && $xml->variables->cc_cause == 'cancel') { //call center $missed_call = 'true'; } - if (isset($xml->variables->billsec) && $xml->variables->billsec > 0) { - //answered call - $missed_call = 'false'; - } if (isset($xml->variables->destination_number) && substr($xml->variables->destination_number, 0, 3) == '*99') { //voicemail $missed_call = 'true';