From 70c645810a1685be6a91b5411eea67ed6099f467 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 5 Oct 2017 12:51:13 -0600 Subject: [PATCH] Update v_xml_cdr_import.php --- app/xml_cdr/v_xml_cdr_import.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index e73923d5f5..1449158d90 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -549,12 +549,12 @@ $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);