From 7a6c44267a473da25e0ceadd160f9965eb8e3770 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 4 Aug 2022 12:50:29 -0600 Subject: [PATCH] Check for missed_call variable use it if it exists --- app/xml_cdr/resources/classes/xml_cdr.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index fdc4e4e835..591b959fac 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -374,7 +374,10 @@ if (!class_exists('xml_cdr')) { } //set missed calls - if (isset($xml->variables->answer_stamp) && isset($xml->variables->bridge_uuid)) { + if (isset($xml->variables->missed_call) { + $missed_call = $xml->variables->missed_call; + } + elseif (isset($xml->variables->answer_stamp) && isset($xml->variables->bridge_uuid)) { //answered call $missed_call = 'false'; }