mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Include ORIGINATOR_CANCEL for missed calls
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user