From dbc88b847a6ae083c82822326822cb95c62a4a80 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 20 Feb 2024 12:47:10 -0700 Subject: [PATCH] Replace voicemail_answer_stamp with voicemail_message_seconds The voicemail_answer_stamp value exists if the call reaches voicemail. The voicemail_message_seconds is set if the caller leaves a voicemail message. --- app/xml_cdr/resources/classes/xml_cdr.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 968408446a..a734783888 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -571,7 +571,7 @@ if (!class_exists('xml_cdr')) { if (substr($destination_number, 0, 3) == '*99') { $status = 'voicemail'; } - if (isset($xml->variables->voicemail_answer_stamp)) { + if (isset($xml->variables->voicemail_message_seconds) && $xml->variables->voicemail_message_seconds > 0) { $status = 'voicemail'; } if ($xml->variables->hangup_cause == 'ORIGINATOR_CANCEL') { @@ -2004,4 +2004,3 @@ if (!class_exists('xml_cdr')) { } ?> -