mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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.
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user