From 80cfab92b8cc6352f8db9e61b26ba0405e60cd89 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 19 Nov 2021 11:11:40 -0700 Subject: [PATCH] Use answer_stamp and bridge_uuid to deteremine if the call was answered. --- app/xml_cdr/resources/classes/xml_cdr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; }