From e48256aee5f6c646a618866ce9de5be36185c6d3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 16 Mar 2019 04:17:01 -0600 Subject: [PATCH] Update v_xml_cdr_import.php --- app/xml_cdr/v_xml_cdr_import.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index 157f69a343..828505351f 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -195,6 +195,17 @@ $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->billsec > 0) { + $database->fields['missed_call'] = 'true'; + } + else { + if (isset($xml->variables->missed_call)) { + $database->fields['missed_call'] = check_str($xml->variables->missed_call); + } + } + //get the values from the callflow. $x = 0; foreach ($xml->callflow as $row) {