Update v_xml_cdr_import.php
This commit is contained in:
@@ -191,10 +191,6 @@
|
|||||||
$database->fields['rtp_audio_in_mos'] = $rtp_audio_in_mos;
|
$database->fields['rtp_audio_in_mos'] = $rtp_audio_in_mos;
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the caller details
|
|
||||||
$database->fields['caller_id_name'] = urldecode($xml->variables->effective_caller_id_name);
|
|
||||||
$database->fields['caller_id_number'] = urldecode($xml->variables->effective_caller_id_number);
|
|
||||||
|
|
||||||
//set missed calls
|
//set missed calls
|
||||||
$database->fields['missed_call'] = 'false';
|
$database->fields['missed_call'] = 'false';
|
||||||
if ($xml->variables->call_direction == 'local' || $xml->variables->call_direction == 'inbound') {
|
if ($xml->variables->call_direction == 'local' || $xml->variables->call_direction == 'inbound') {
|
||||||
@@ -206,6 +202,10 @@
|
|||||||
$database->fields['missed_call'] = 'true';
|
$database->fields['missed_call'] = 'true';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//get the caller details
|
||||||
|
$database->fields['caller_id_name'] = urldecode($xml->variables->effective_caller_id_name);
|
||||||
|
$database->fields['caller_id_number'] = urldecode($xml->variables->effective_caller_id_number);
|
||||||
|
|
||||||
//get the values from the callflow.
|
//get the values from the callflow.
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($xml->callflow as $row) {
|
foreach ($xml->callflow as $row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user