From 612b382a3fa7598bdbb516cd7f3c50c7d627f3aa Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 22 Apr 2018 11:53:26 -0600 Subject: [PATCH] Update v_xml_cdr_import.php --- app/xml_cdr/v_xml_cdr_import.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index 18dc1b861a..062da6808f 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -298,6 +298,11 @@ $record_name = urldecode($xml->variables->record_name); $record_length = urldecode($xml->variables->record_seconds); } + elseif (strlen($record_path) == 0 and urldecode($xml->variables->last_app) == "record_session") { + $record_path = dirname(urldecode($xml->variables->last_arg)); + $record_name = basename(urldecode($xml->variables->last_arg)); + $record_length = urldecode($xml->variables->record_seconds); + } elseif (strlen($xml->variables->record_name) > 0) { $record_path = urldecode($xml->variables->record_path); $record_name = urldecode($xml->variables->record_name);