Update v_xml_cdr_import.php
This commit is contained in:
parent
c73ff6cdac
commit
6fedb08d8c
|
|
@ -287,16 +287,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the recording details
|
//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_path = urldecode($xml->variables->record_path);
|
||||||
$record_name = urldecode($xml->variables->record_name);
|
$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);
|
$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) {
|
elseif (strlen($xml->variables->sofia_record_file) > 0) {
|
||||||
$record_path = dirname(urldecode($xml->variables->sofia_record_file));
|
$record_path = dirname(urldecode($xml->variables->sofia_record_file));
|
||||||
$record_name = basename(urldecode($xml->variables->sofia_record_file));
|
$record_name = basename(urldecode($xml->variables->sofia_record_file));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue