From 0a45b7acf1ded8b889c2bef360b5295acc004223 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 5 Aug 2022 11:30:57 -0600 Subject: [PATCH] Don't show these by default. Permissions are there to show these however its is expected that these permissions will be assigned to a group rarely. Considering removing the permissions and not import the records. --- app/xml_cdr/xml_cdr_inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/xml_cdr/xml_cdr_inc.php b/app/xml_cdr/xml_cdr_inc.php index ae3168f629..b86e58c433 100644 --- a/app/xml_cdr/xml_cdr_inc.php +++ b/app/xml_cdr/xml_cdr_inc.php @@ -452,11 +452,11 @@ } //exclude ring group legs that were not answered - if (permission_exists('xml_cdr_lose_race')) { + if (!permission_exists('xml_cdr_lose_race')) { $sql .= "and hangup_cause != 'LOSE_RACE' \n"; } - if (permission_exists('xml_cdr_enterprise_leg')) { - $sql .= "and originating_leg_uuid IS NULL \n"; + if (!permission_exists('xml_cdr_enterprise_leg')) { + $sql .= "and (hangup_cause != 'NO_ANSWER' and originating_leg_uuid IS NULL) \n"; } if (strlen($call_result) > 0) {