If the call goes to voicemail it is a missed call.
This commit is contained in:
@@ -392,7 +392,11 @@ if (!class_exists('xml_cdr')) {
|
|||||||
}
|
}
|
||||||
elseif (substr($xml->variables->destination_number, 0, 3) == '*99') {
|
elseif (substr($xml->variables->destination_number, 0, 3) == '*99') {
|
||||||
//voicemail
|
//voicemail
|
||||||
$missed_call = 'false';
|
$missed_call = 'true';
|
||||||
|
}
|
||||||
|
elseif (isset($xml->variables->voicemail_message) && $xml->variables->voicemail_message == true) {
|
||||||
|
//voicemail
|
||||||
|
$missed_call = 'true';
|
||||||
}
|
}
|
||||||
elseif (isset($xml->variables->billsec) && $xml->variables->billsec > 0) {
|
elseif (isset($xml->variables->billsec) && $xml->variables->billsec > 0) {
|
||||||
//answered call
|
//answered call
|
||||||
|
|||||||
Reference in New Issue
Block a user