diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index d5b4d16015..12ca5f4032 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -545,15 +545,15 @@ //ring group or multi destination bridge statement $missed_call = 'false'; } + if (isset($xml->variables->billsec) && $xml->variables->billsec > 0) { + //answered call + $missed_call = 'false'; + } if (isset($xml->variables->cc_side) && $xml->variables->cc_side == 'member' && isset($xml->variables->cc_cause) && $xml->variables->cc_cause == 'cancel') { //call center $missed_call = 'true'; } - if (isset($xml->variables->billsec) && $xml->variables->billsec > 0) { - //answered call - $missed_call = 'false'; - } if (isset($xml->variables->destination_number) && substr($xml->variables->destination_number, 0, 3) == '*99') { //voicemail $missed_call = 'true';