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) {