From ee49410edb8696d013eae2f537358924e2182f03 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 20 Feb 2024 12:30:20 -0700 Subject: [PATCH] Don't use voicemail_id to determine call status This is an unreliable way to detect if the call went to voicemail. --- app/xml_cdr/resources/classes/xml_cdr.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 1dc8197e64..5fc83d1efb 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -574,9 +574,6 @@ if (!class_exists('xml_cdr')) { if (isset($xml->variables->voicemail_answer_stamp)) { $status = 'voicemail'; } - if (isset($xml->variables->voicemail_id)) { - $status = 'voicemail'; - } if ($xml->variables->hangup_cause == 'ORIGINATOR_CANCEL') { $status = 'cancelled'; } @@ -2007,4 +2004,3 @@ if (!class_exists('xml_cdr')) { } ?> -