From c1e6f3e11d9d3932c4ba1a515fa3e6710ce774c4 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 1 Mar 2024 14:10:19 -0700 Subject: [PATCH] Include ORIGINATOR_CANCEL for missed calls --- app/xml_cdr/resources/classes/xml_cdr.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index a734783888..54f8fc51cb 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -479,6 +479,11 @@ if (!class_exists('xml_cdr')) { //marked as missed $missed_call = $xml->variables->missed_call; } + if (isset($call_direction) && $call_direction == 'inbound' + && isset($xml->variables->hangup_cause) + && $xml->variables->hangup_cause == 'ORIGINATOR_CANCEL') { + $missed_call = 'true'; + } if (isset($xml->variables->billsec) && $xml->variables->billsec > 0) { //answered call $missed_call = 'false';