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.
This commit is contained in:
FusionPBX
2024-02-20 12:49:06 -07:00
committed by GitHub
parent ee49410edb
commit ebadf2934d

View File

@@ -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') {