From e3b600eaff4bc1de8efc0be1f781d8036639e08e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 28 Jan 2023 14:49:35 -0700 Subject: [PATCH] Exclude Call center agent as missed call The call could have been answered by another call center agent. --- app/xml_cdr/resources/classes/xml_cdr.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index caad948fd2..cc009c7767 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -423,11 +423,15 @@ if (!class_exists('xml_cdr')) { //answered call $missed_call = 'false'; } + elseif (isset($xml->variables->cc_side) && $xml->variables->cc_side == 'agent') { + //call center + $missed_call = 'false'; + } else { //missed call $missed_call = 'true'; } - + //get the last bridge_uuid from the call to preserve previous behavior foreach ($xml->variables->bridge_uuids as $bridge) { $last_bridge = urldecode($bridge);