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:47:10 -07:00
committed by GitHub
parent 359a323c1f
commit dbc88b847a

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') {
@@ -2004,4 +2004,3 @@ if (!class_exists('xml_cdr')) {
}
?>