From ebadf2934da507e534f09b126c42f8c2b681ecc3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 20 Feb 2024 12:49:06 -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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 5fc83d1efb..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') {