From ef38b15cdc9a1e4bfa5a0462c7d304a94f28f720 Mon Sep 17 00:00:00 2001 From: demonspork Date: Fri, 19 Feb 2021 23:27:24 -0600 Subject: [PATCH] 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. --- app/xml_cdr/v_xml_cdr_import.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index bfbd1026c7..0902b4c271 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -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);