Don't use voicemail_id to determine call status
This is an unreliable way to detect if the call went to voicemail.
This commit is contained in:
@@ -574,9 +574,6 @@ if (!class_exists('xml_cdr')) {
|
|||||||
if (isset($xml->variables->voicemail_answer_stamp)) {
|
if (isset($xml->variables->voicemail_answer_stamp)) {
|
||||||
$status = 'voicemail';
|
$status = 'voicemail';
|
||||||
}
|
}
|
||||||
if (isset($xml->variables->voicemail_id)) {
|
|
||||||
$status = 'voicemail';
|
|
||||||
}
|
|
||||||
if ($xml->variables->hangup_cause == 'ORIGINATOR_CANCEL') {
|
if ($xml->variables->hangup_cause == 'ORIGINATOR_CANCEL') {
|
||||||
$status = 'cancelled';
|
$status = 'cancelled';
|
||||||
}
|
}
|
||||||
@@ -2007,4 +2004,3 @@ if (!class_exists('xml_cdr')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user