mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 19:53:56 +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
|
//marked as missed
|
||||||
$missed_call = $xml->variables->missed_call;
|
$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) {
|
if (isset($xml->variables->billsec) && $xml->variables->billsec > 0) {
|
||||||
//answered call
|
//answered call
|
||||||
$missed_call = 'false';
|
$missed_call = 'false';
|
||||||
|
|||||||
Reference in New Issue
Block a user