Update v_xml_cdr_import.php

This commit is contained in:
FusionPBX
2017-10-05 12:51:13 -06:00
committed by GitHub
parent 5e41ef3aad
commit 70c645810a

View File

@@ -549,12 +549,12 @@
$record_name = urldecode($xml->variables->record_name);
$record_length = urldecode($xml->variables->billsec);
}
if (strlen($xml->variables->record_session) > 0) {
elseif (strlen($xml->variables->record_session) > 0) {
$record_path = dirname(urldecode($xml->variables->record_session));
$record_name = basename(urldecode($xml->variables->record_session));
$record_length = urldecode($xml->variables->record_seconds);
}
if (strlen($xml->variables->sofia_record_file) > 0) {
elseif (strlen($xml->variables->sofia_record_file) > 0) {
$record_path = dirname(urldecode($xml->variables->sofia_record_file));
$record_name = basename(urldecode($xml->variables->sofia_record_file));
$record_length = urldecode($xml->variables->record_seconds);