From a818c43915fb4d96f38aed74b7da7fede4f362ec Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 17 Jun 2025 12:58:26 -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 62d76f7755..c4e358714f 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -515,15 +515,15 @@ if (!class_exists('xml_cdr')) { //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';