From d0c3c938598b28362f76e77d3a99ac90e337785e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 4 Jan 2024 13:54:03 -0700 Subject: [PATCH] Destination summary unique callers Use caller id number instead of name --- app/destinations/resources/classes/destinations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index 5f6dc63186..5a57114be5 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -1179,7 +1179,7 @@ if (!class_exists('destinations')) { $sql .= "as answered_calls, \n"; //unique_callers - $sql .= "count(distinct(c.caller_id_name)) \n"; + $sql .= "count(distinct(c.caller_id_number)) \n"; $sql .= "filter ( \n"; $sql .= " where caller_destination in (d.destination_number, concat(d.destination_prefix, d.destination_number), concat('+', d.destination_prefix, d.destination_number)) \n"; $sql .= " and billsec > 0 \n";