From 5722d3e9e6faac9037023dfcaaafae1568447193 Mon Sep 17 00:00:00 2001 From: Rob Mosher Date: Sat, 31 May 2025 11:01:17 -0400 Subject: [PATCH] Fix CDR HTTP authentication logic bug (#7382) - Add missing negation operator in http_enabled check - Resolves silent CDR import failures when http_enabled is true - Fixes authentication logic that was preventing valid HTTP CDR imports --- app/xml_cdr/resources/classes/xml_cdr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index d31ab14766..cd4772763f 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -1703,7 +1703,7 @@ //if http enabled is set to false then deny access if (!defined('STDIN')) { - if ($this->settings->get('cdr', 'http_enabled', false)) { + if (!$this->settings->get('cdr', 'http_enabled', false)) { openlog('FusionPBX', LOG_NDELAY, LOG_AUTH); syslog(LOG_WARNING, '['.$_SERVER['REMOTE_ADDR'].'] XML CDR import default setting http_enabled is not enabled. Line: '.__line__); closelog();