From cd6e5fe791275de750cc3da5d1b8a5cf6470d1b6 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 17 Mar 2019 00:51:06 -0600 Subject: [PATCH] Update v_xml_cdr_import.php --- app/xml_cdr/v_xml_cdr_import.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index ab0727a850..fea5553842 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -191,10 +191,6 @@ $database->fields['rtp_audio_in_mos'] = $rtp_audio_in_mos; } - //get the caller details - $database->fields['caller_id_name'] = urldecode($xml->variables->effective_caller_id_name); - $database->fields['caller_id_number'] = urldecode($xml->variables->effective_caller_id_number); - //set missed calls $database->fields['missed_call'] = 'false'; if ($xml->variables->call_direction == 'local' || $xml->variables->call_direction == 'inbound') { @@ -206,6 +202,10 @@ $database->fields['missed_call'] = 'true'; } + //get the caller details + $database->fields['caller_id_name'] = urldecode($xml->variables->effective_caller_id_name); + $database->fields['caller_id_number'] = urldecode($xml->variables->effective_caller_id_number); + //get the values from the callflow. $x = 0; foreach ($xml->callflow as $row) {