Update v_xml_cdr_import.php

This commit is contained in:
FusionPBX
2020-04-28 16:15:18 -06:00
committed by GitHub
parent b261c7e6d5
commit d53c90d1dd

View File

@@ -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";