Update v_xml_cdr_import.php

This commit is contained in:
FusionPBX
2018-10-24 10:51:56 -06:00
committed by GitHub
parent de37a5ee15
commit 1a40dfe9ee
+1 -1
View File
@@ -312,7 +312,7 @@
$record_name = urldecode($xml->variables->record_name); $record_name = urldecode($xml->variables->record_name);
$record_length = urldecode($xml->variables->record_seconds); $record_length = urldecode($xml->variables->record_seconds);
} }
elseif (strlen($record_path) == 0 and urldecode($xml->variables->last_app) == "record_session") { elseif (!isset($record_path) && urldecode($xml->variables->last_app) == "record_session") {
$record_path = dirname(urldecode($xml->variables->last_arg)); $record_path = dirname(urldecode($xml->variables->last_arg));
$record_name = basename(urldecode($xml->variables->last_arg)); $record_name = basename(urldecode($xml->variables->last_arg));
$record_length = urldecode($xml->variables->record_seconds); $record_length = urldecode($xml->variables->record_seconds);