From 06ee760313a581e7d3ed6a3bf5596e6426a6a1a8 Mon Sep 17 00:00:00 2001 From: Alex <40072887+alexdcrane@users.noreply.github.com> Date: Fri, 14 Mar 2025 13:26:28 -0700 Subject: [PATCH] Update xml_cdr.php --- app/xml_cdr/resources/service/xml_cdr.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/xml_cdr/resources/service/xml_cdr.php b/app/xml_cdr/resources/service/xml_cdr.php index 7714335df0..b39fd75333 100644 --- a/app/xml_cdr/resources/service/xml_cdr.php +++ b/app/xml_cdr/resources/service/xml_cdr.php @@ -80,11 +80,8 @@ exit; } -//get the settings - $setting = new settings(); - //get cdr settings - //$interval = $setting->get('xml_cdr', '$interval'); + //$interval = $settings->get('xml_cdr', '$interval'); //make sure the /var/run/fusionpbx directory exists if (!file_exists('/var/run/fusionpbx')) { @@ -119,7 +116,7 @@ $cdr = new xml_cdr; //get the cdr record - $xml_cdr_dir = $setting->get('switch', 'log').'/xml_cdr'; + $xml_cdr_dir = $settings->get('switch', 'log').'/xml_cdr'; //loop through while (true) {