diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 8ad5f6f290..661197ca52 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -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';