diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index f0e4b48cb5..65a04a367b 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -287,16 +287,16 @@ } //get the recording details - if (strlen($xml->variables->record_name) > 0) { + 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->billsec); - } - 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); } + elseif (strlen($xml->variables->record_name) > 0) { + $record_path = urldecode($xml->variables->record_path); + $record_name = urldecode($xml->variables->record_name); + $record_length = urldecode($xml->variables->duration); + } 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));