Update xml_cdr.php

This commit is contained in:
FusionPBX
2025-08-15 15:15:24 -06:00
committed by GitHub
parent 20319af117
commit 08092678fa

View File

@@ -375,10 +375,7 @@
}
//skip call detail records for calls blocked by call block
if (isset($xml->variables->call_block)
&& $xml->variables->call_block == 'true'
&& !$this->settings->get('call_block', 'save_call_detail_record', true)
) {
if (isset($xml->variables->call_block) && $xml->variables->call_block == 'true' && !$this->settings->get('call_block', 'save_call_detail_record', true)) {
//delete the xml cdr file
if (!empty($this->settings->get('switch', 'log'))) {
$xml_cdr_dir = $this->settings->get('switch', 'log').'/xml_cdr';