From 62b95fa69027c181e34491a68fe91424888a7dda Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 18 May 2023 23:41:21 -0600 Subject: [PATCH] Handle call center variables with a value of _undef_ --- app/xml_cdr/resources/classes/xml_cdr.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 7f3e991c68..a4d4ced0f0 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -516,6 +516,11 @@ if (!class_exists('xml_cdr')) { $this->array[$key]['direction'] = urldecode($xml->variables->call_direction); //call center + if ($xml->variables->cc_member_uuid == '_undef_') { $xml->variables->cc_member_uuid = ''; } + if ($xml->variables->cc_member_session_uuid == '_undef_') { $xml->variables->cc_member_session_uuid = ''; } + if ($xml->variables->cc_agent_uuid == '_undef_') { $xml->variables->cc_agent_uuid = ''; } + if ($xml->variables->call_center_queue_uuid == '_undef_') { $xml->variables->call_center_queue_uuid = ''; } + if ($xml->variables->cc_queue_joined_epoch == '_undef_') { $xml->variables->cc_queue_joined_epoch = ''; } $this->array[$key]['cc_side'] = urldecode($xml->variables->cc_side); $this->array[$key]['cc_member_uuid'] = urldecode($xml->variables->cc_member_uuid); $this->array[$key]['cc_queue'] = urldecode($xml->variables->cc_queue);