mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
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
|
||||
$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';
|
||||
}
|
||||
if ($xml->variables->missed_call == 'true') {
|
||||
@@ -265,9 +265,6 @@
|
||||
|
||||
//store the call 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
|
||||
$database->fields['pdd_ms'] = urldecode($xml->variables->progress_mediamsec) + urldecode($xml->variables->progressmsec);
|
||||
|
||||
Reference in New Issue
Block a user