From bb8c4c0e66e5109fe7c346a17ead8e29f677a8a2 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 1 Mar 2024 14:08:47 -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 8ad5f6f290..661197ca52 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';