Update v_xml_cdr_import.php

This commit is contained in:
FusionPBX
2020-03-10 10:41:38 -06:00
committed by GitHub
parent cec175182b
commit 4b2a918193

View File

@@ -366,7 +366,12 @@
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));