From a45b9ffa78d80f3530e1d09d55e8037ba234acd6 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 5 Oct 2017 12:52:08 -0600 Subject: [PATCH] Update xml_cdr.php --- app/xml_cdr/resources/classes/xml_cdr.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 8673738f1a..fb9e7d2e74 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -419,12 +419,12 @@ if (!class_exists('xml_cdr')) { $record_name = urldecode($xml->variables->record_name); $record_length = urldecode($xml->variables->billsec); } - if (strlen($xml->variables->record_session) > 0) { + elseif (strlen($xml->variables->record_session) > 0) { $record_path = dirname(urldecode($xml->variables->record_session)); $record_name = basename(urldecode($xml->variables->record_session)); $record_length = urldecode($xml->variables->record_seconds); } - if (strlen($xml->variables->sofia_record_file) > 0) { + elseif (strlen($xml->variables->sofia_record_file) > 0) { $record_path = dirname(urldecode($xml->variables->sofia_record_file)); $record_name = basename(urldecode($xml->variables->sofia_record_file)); $record_length = urldecode($xml->variables->record_seconds);