Update v_xml_cdr_import.php

This commit is contained in:
FusionPBX 2019-03-17 00:51:06 -06:00 committed by GitHub
parent 4461a5ce6f
commit cd6e5fe791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -191,10 +191,6 @@
$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
$database->fields['missed_call'] = 'false';
if ($xml->variables->call_direction == 'local' || $xml->variables->call_direction == 'inbound') {
@ -206,6 +202,10 @@
$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.
$x = 0;
foreach ($xml->callflow as $row) {