From e9fcc04d3f60547039b5ab2ccd4b83b40dee0fea Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 3 Jul 2025 13:45:44 -0600 Subject: [PATCH] Allow missed_call override allow calls marked as missed_call value to be overridden, an alternate destination may have answered the call --- app/xml_cdr/resources/classes/xml_cdr.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index f2963dd56a..7836c03920 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2016-2024 + Portions created by the Initial Developer are Copyright (C) 2016-2025 the Initial Developer. All Rights Reserved. Contributor(s): @@ -524,6 +524,10 @@ } //set missed calls + if (isset($xml->variables->missed_call) && $xml->variables->missed_call == 'true') { + //allow calls marked as missed_call value to be overridden, an alternate destination may have answered the call + $missed_call = 'true'; + } if (isset($call_direction) && $call_direction == 'inbound' && isset($xml->variables->hangup_cause) && $xml->variables->hangup_cause == 'ORIGINATOR_CANCEL') { @@ -562,10 +566,6 @@ //voicemail $missed_call = 'true'; } - if (isset($xml->variables->missed_call) && $xml->variables->missed_call == 'true') { - //marked as missed - $missed_call = 'true'; - } //read the bridge statement variables if (isset($xml->variables->last_app)) {