From 51fe5f1d4b152deb0112fa42ee1b195139f5db42 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 18 Jan 2024 14:13:44 -0700 Subject: [PATCH] Update xml_cdr.php --- app/xml_cdr/resources/service/xml_cdr.php | 7 +++++++ 1 file changed, 7 insertions(+) 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++; } }