From da768d984bbab48ff4f23aab5821a02ab3206650 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 5 Aug 2022 15:05:49 -0600 Subject: [PATCH] If the call goes to voicemail it is a missed call. --- app/xml_cdr/resources/classes/xml_cdr.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index b6d0c32f43..b71d244850 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -392,7 +392,11 @@ if (!class_exists('xml_cdr')) { } elseif (substr($xml->variables->destination_number, 0, 3) == '*99') { //voicemail - $missed_call = 'false'; + $missed_call = 'true'; + } + elseif (isset($xml->variables->voicemail_message) && $xml->variables->voicemail_message == true) { + //voicemail + $missed_call = 'true'; } elseif (isset($xml->variables->billsec) && $xml->variables->billsec > 0) { //answered call