diff --git a/app/xml_cdr/resources/service/xml_cdr.php b/app/xml_cdr/resources/service/xml_cdr.php index 19f5450a50..7714335df0 100644 --- a/app/xml_cdr/resources/service/xml_cdr.php +++ b/app/xml_cdr/resources/service/xml_cdr.php @@ -163,6 +163,13 @@ //parse the xml and insert the data into the db $cdr->xml_array($i, $leg, $call_details); } + + //limit the number of records process at one time + if ($i == 100) { + break; + } + + //increment the value $i++; } }