diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 94a5ee96ba..4b68d68ada 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -1012,7 +1012,7 @@ if (!class_exists('xml_cdr')) { $sql .= "count(*) \n"; $sql .= "filter ( \n"; $sql .= " where c.extension_uuid = e.extension_uuid \n"; - $sql .= " and missed_call = false \n"; + $sql .= " and (answer_stamp is not null and bridge_uuid is not null) \n"; if ($this->include_internal) { $sql .= " and (direction = 'inbound' or direction = 'local') \n"; }