From c2f8733728cf8d6071785e40f82c7bcbb13b3f4c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 5 Feb 2018 13:32:40 -0700 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 aa5423ca35..1eab82d6f3 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2016-2017 + Portions created by the Initial Developer are Copyright (C) 2016-2018 the Initial Developer. All Rights Reserved. Contributor(s): @@ -448,6 +448,11 @@ if (!class_exists('xml_cdr')) { $record_name = basename(urldecode($xml->variables->sofia_record_file)); $record_length = urldecode($xml->variables->record_seconds); } + elseif (strlen($xml->variables->cc_record_filename) > 0) { + $record_path = dirname(urldecode($xml->variables->cc_record_filename)); + $record_name = basename(urldecode($xml->variables->cc_record_filename)); + $record_length = urldecode($xml->variables->record_seconds); + } elseif (strlen($xml->variables->api_on_answer) > 0) { $command = str_replace("\n", " ", urldecode($xml->variables->api_on_answer)); $parts = explode(" ", $command);