Update v_xml_cdr_import.php

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

View File

@ -197,14 +197,14 @@
//set missed calls
$database->fields['missed_call'] = 'false';
if ($xml->variables->billsec > 0) {
$database->fields['missed_call'] = 'true';
}
else {
if (isset($xml->variables->missed_call)) {
$database->fields['missed_call'] = check_str($xml->variables->missed_call);
if ($xml->variables->call_direction == 'local' || $xml->variables->call_direction == 'inbound') {
if ($xml->variables->billsec == 0) {
$database->fields['missed_call'] = 'true';
}
}
if ($xml->variables->missed_call == 'true') {
$database->fields['missed_call'] = 'true';
}
//get the values from the callflow.
$x = 0;