Include ORIGINATOR_CANCEL for missed calls
This commit is contained in:
parent
ebe12ef338
commit
bb8c4c0e66
|
|
@ -479,6 +479,11 @@ if (!class_exists('xml_cdr')) {
|
|||
//marked as missed
|
||||
$missed_call = $xml->variables->missed_call;
|
||||
}
|
||||
if (isset($call_direction) && $call_direction == 'inbound'
|
||||
&& isset($xml->variables->hangup_cause)
|
||||
&& $xml->variables->hangup_cause == 'ORIGINATOR_CANCEL') {
|
||||
$missed_call = 'true';
|
||||
}
|
||||
if (isset($xml->variables->billsec) && $xml->variables->billsec > 0) {
|
||||
//answered call
|
||||
$missed_call = 'false';
|
||||
|
|
|
|||
Loading…
Reference in New Issue