Update xml_cdr.php

This commit is contained in:
FusionPBX 2020-04-28 16:11:06 -06:00 committed by GitHub
parent a872a6c848
commit b261c7e6d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -783,8 +783,8 @@ if (!class_exists('xml_cdr')) {
$import = true;
}
//import the call detail record
if ($import) {
//import the call detail files are less than 3 mb - 3 million bytes
if ($import && filesize($xml_cdr_dir.'/'.$file) < 3000000) {
//get the xml cdr string
$xml_string = file_get_contents($xml_cdr_dir.'/'.$file);
@ -796,11 +796,9 @@ if (!class_exists('xml_cdr')) {
//delete the file after it has been imported
unlink($xml_cdr_dir.'/'.$file);
}
//increment the value
if ($import) {
$x++;
//increment the value
$x++;
}
//if limit exceeded exit the loop