mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update v_xml_cdr_import.php
This commit is contained in:
@@ -208,10 +208,12 @@
|
||||
}
|
||||
|
||||
//get the caller details
|
||||
$database->fields['caller_id_name'] = urldecode($xml->variables->effective_caller_id_name);
|
||||
if ($xml->variables->call_direction == 'inbound' ){
|
||||
$database->fields['caller_id_number'] = urldecode($xml->variables->caller_id_number);
|
||||
} else {
|
||||
$database->fields['caller_id_name'] = urldecode($xml->variables->caller_id_name);
|
||||
$database->fields['caller_id_number'] = urldecode($xml->variables->caller_id_number);
|
||||
if (isset($xml->variables->effective_caller_id_name)) {
|
||||
$database->fields['caller_id_name'] = urldecode($xml->variables->effective_caller_id_name);
|
||||
}
|
||||
if (isset($xml->variables->effective_caller_id_number)) {
|
||||
$database->fields['caller_id_number'] = urldecode($xml->variables->effective_caller_id_number);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user