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:
parent
ee49410edb
commit
ebadf2934d
|
|
@ -571,7 +571,7 @@ if (!class_exists('xml_cdr')) {
|
||||||
if (substr($destination_number, 0, 3) == '*99') {
|
if (substr($destination_number, 0, 3) == '*99') {
|
||||||
$status = 'voicemail';
|
$status = 'voicemail';
|
||||||
}
|
}
|
||||||
if (isset($xml->variables->voicemail_answer_stamp)) {
|
if (isset($xml->variables->voicemail_message_seconds) && $xml->variables->voicemail_message_seconds > 0) {
|
||||||
$status = 'voicemail';
|
$status = 'voicemail';
|
||||||
}
|
}
|
||||||
if ($xml->variables->hangup_cause == 'ORIGINATOR_CANCEL') {
|
if ($xml->variables->hangup_cause == 'ORIGINATOR_CANCEL') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue