From d53c90d1dd514bd661d6163f68fd71c64fc10116 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 28 Apr 2020 16:15:18 -0600 Subject: [PATCH] Update v_xml_cdr_import.php --- app/xml_cdr/v_xml_cdr_import.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index 58535cb6d5..086fcfee33 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -661,7 +661,8 @@ $x = 0; while($file = readdir($dir_handle)) { if ($file != '.' && $file != '..') { - if ( !is_dir($xml_cdr_dir . '/' . $file) ) { + //import the call detail files are less than 3 mb - 3 million bytes + if (!is_dir($xml_cdr_dir . '/' . $file) && filesize($xml_cdr_dir.'/'.$file) < 3000000) { //get the leg of the call if (substr($file, 0, 2) == "a_") { $leg = "a";