Update xml_cdr.php

This commit is contained in:
FusionPBX
2020-03-10 10:43:58 -06:00
committed by GitHub
parent 4b2a918193
commit c1b80ade27

View File

@@ -478,7 +478,12 @@ if (!class_exists('xml_cdr')) {
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));