Add new missed call rules to HTTP CDR Imports
Add new missed call rules to HTTP CDR Imports. They had only been added to the xml_cdr class used by the file import.
This commit is contained in:
@@ -211,7 +211,7 @@
|
|||||||
|
|
||||||
//set missed calls
|
//set missed calls
|
||||||
$database->fields['missed_call'] = 'false';
|
$database->fields['missed_call'] = 'false';
|
||||||
if (strlen($xml->variables->answer_stamp) == 0) {
|
if (strlen($xml->variables->originating_leg_uuid) == 0 && $xml->variables->call_direction != 'outbound' && strlen($xml->variables->answer_stamp) == 0) {
|
||||||
$database->fields['missed_call'] = 'true';
|
$database->fields['missed_call'] = 'true';
|
||||||
}
|
}
|
||||||
if ($xml->variables->missed_call == 'true') {
|
if ($xml->variables->missed_call == 'true') {
|
||||||
@@ -265,9 +265,6 @@
|
|||||||
|
|
||||||
//store the call leg
|
//store the call leg
|
||||||
$database->fields['leg'] = $leg;
|
$database->fields['leg'] = $leg;
|
||||||
|
|
||||||
//store the originating leg
|
|
||||||
$database->fields['originating_leg_uuid'] = urldecode($xml->variables->originating_leg_uuid);
|
|
||||||
|
|
||||||
//store post dial delay, in milliseconds
|
//store post dial delay, in milliseconds
|
||||||
$database->fields['pdd_ms'] = urldecode($xml->variables->progress_mediamsec) + urldecode($xml->variables->progressmsec);
|
$database->fields['pdd_ms'] = urldecode($xml->variables->progress_mediamsec) + urldecode($xml->variables->progressmsec);
|
||||||
|
|||||||
Reference in New Issue
Block a user