From c1b80ade27469169687fd3323c5838ea04104d81 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 10 Mar 2020 10:43:58 -0600 Subject: [PATCH] Update xml_cdr.php --- app/xml_cdr/resources/classes/xml_cdr.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index fccf5ec65d..4c7d7a8ec4 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -478,7 +478,12 @@ if (!class_exists('xml_cdr')) { if (strlen($xml->variables->record_session) > 0) { $record_path = urldecode($xml->variables->record_path); $record_name = urldecode($xml->variables->record_name); - $record_length = urldecode($xml->variables->record_seconds); + if (isset($xml->variables->record_seconds)) { + $record_length = urldecode($xml->variables->record_seconds); + } + else { + $record_length = urldecode($xml->variables->duration); + } } elseif (!isset($record_path) && urldecode($xml->variables->last_app) == "record_session") { $record_path = dirname(urldecode($xml->variables->last_arg));