Update v_xml_cdr_import.php
This commit is contained in:
parent
ed5dab1bdc
commit
05d2d4ca98
|
|
@ -197,14 +197,14 @@
|
||||||
|
|
||||||
//set missed calls
|
//set missed calls
|
||||||
$database->fields['missed_call'] = 'false';
|
$database->fields['missed_call'] = 'false';
|
||||||
if ($xml->variables->billsec > 0) {
|
if ($xml->variables->call_direction == 'local' || $xml->variables->call_direction == 'inbound') {
|
||||||
$database->fields['missed_call'] = 'true';
|
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->missed_call == 'true') {
|
||||||
|
$database->fields['missed_call'] = 'true';
|
||||||
|
}
|
||||||
|
|
||||||
//get the values from the callflow.
|
//get the values from the callflow.
|
||||||
$x = 0;
|
$x = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue