Update v_xml_cdr_import.php

This commit is contained in:
FusionPBX 2018-04-22 11:51:36 -06:00 committed by GitHub
parent 78ddfe6045
commit 55cdc99eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -298,6 +298,11 @@
$record_name = urldecode($xml->variables->record_name);
$record_length = urldecode($xml->variables->record_seconds);
}
elseif (strlen($record_path) == 0 and urldecode($xml->variables->last_app) == "record_session") {
$record_path = dirname(urldecode($xml->variables->last_arg));
$record_name = basename(urldecode($xml->variables->last_arg));
$record_length = urldecode($xml->variables->record_seconds);
}
elseif (strlen($xml->variables->record_name) > 0) {
$record_path = urldecode($xml->variables->record_path);
$record_name = urldecode($xml->variables->record_name);