mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 10:43:49 +00:00
Update v_xml_cdr_import.php
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user