From e16cc5e725523211f494281a5b44874b40cf4b15 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 18 Jan 2022 11:52:26 -0700 Subject: [PATCH] Need to keep the caller ID prefix on the caller ID name. This was needed to keep caller id prefix for the caller ID name so it shows up in the Call Detail Records. --- 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 86a4291e96..d8df0219ae 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -303,7 +303,7 @@ if (!class_exists('xml_cdr')) { $caller_id_number = urldecode($xml->variables->caller_id_number); //if the call is outbound use the external caller ID - if (urldecode($xml->variables->call_direction) == 'outbound' && isset($xml->variables->effective_caller_id_name)) { + if (isset($xml->variables->effective_caller_id_name)) { $caller_id_name = urldecode($xml->variables->effective_caller_id_name); } if (urldecode($xml->variables->call_direction) == 'outbound' && isset($xml->variables->effective_caller_id_number)) {