From 0304dfffad9b868d451962cce7ffafceff29d6f7 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 4 Aug 2023 13:53:37 -0600 Subject: [PATCH] Use empty record_name Recording call through a ring group its not setting the record_name variable this picks up the recording from the file system. --- app/xml_cdr/resources/classes/xml_cdr.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index f7b12a9b59..55b122404b 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -751,7 +751,7 @@ if (!class_exists('xml_cdr')) { } } } - if (!isset($record_name)) { + if (empty($record_name)) { $bridge_uuid = urldecode($xml->variables->bridge_uuid) ?: $last_bridge; $path = $_SESSION['switch']['recordings']['dir'].'/'.$domain_name.'/archive/'.$start_year.'/'.$start_month.'/'.$start_day; if (file_exists($path.'/'.$bridge_uuid.'.wav')) { @@ -764,7 +764,7 @@ if (!class_exists('xml_cdr')) { $record_length = urldecode($xml->variables->duration); } } - if (!isset($record_name)) { + if (empty($record_name)) { $path = $_SESSION['switch']['recordings']['dir'].'/'.$domain_name.'/archive/'.$start_year.'/'.$start_month.'/'.$start_day; if (file_exists($path.'/'.$uuid.'.wav')) { $record_path = $path; @@ -778,7 +778,7 @@ if (!class_exists('xml_cdr')) { } //last check - if (!isset($record_name) || is_null ($record_name) || (empty($record_name))) { + if (empty($record_name)) { $bridge_uuid = urldecode($xml->variables->bridge_uuid) ?: $last_bridge ; $path = $_SESSION['switch']['recordings']['dir'].'/'.$domain_name.'/archive/'.$start_year.'/'.$start_month.'/'.$start_day; if (file_exists($path.'/'.$bridge_uuid.'.wav')) {