New setting call_log_enabled default false

This commit is contained in:
FusionPBX
2024-03-12 17:44:46 -06:00
committed by GitHub
parent fe5a974dd8
commit e0f4309076
3 changed files with 27 additions and 22 deletions
+1 -6
View File
@@ -963,7 +963,7 @@ if (!class_exists('xml_cdr')) {
}
//save the call log to the database
if (!empty($this->setting->get('switch', 'log')) && $this->setting->get('cdr', 'storage') == "db") {
if ($this->setting->get('cdr', 'call_log_enabled') == 'true' && !empty($this->setting->get('switch', 'log')) && $this->setting->get('cdr', 'storage') == "db") {
//get the log content
$log_content = '';
$handle = @fopen($this->setting->get('switch', 'log').'/freeswitch.log', "r");
@@ -2034,8 +2034,3 @@ if (!class_exists('xml_cdr')) {
}
?>