Update v_xml_cdr_import.php

This commit is contained in:
FusionPBX 2019-03-16 04:17:01 -06:00 committed by GitHub
parent 8a8a3e514a
commit bb5e79572e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -195,6 +195,17 @@
$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->billsec > 0) {
$database->fields['missed_call'] = 'true';
}
else {
if (isset($xml->variables->missed_call)) {
$database->fields['missed_call'] = check_str($xml->variables->missed_call);
}
}
//get the values from the callflow.
$x = 0;
foreach ($xml->callflow as $row) {