From 4b7e90c3ff32c7f7ce859df4201b8da8a928cb55 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 23 Sep 2024 13:01:47 -0600 Subject: [PATCH] Restore previous caller ID behavior If the caller ID was updated then update the caller ID --- app/xml_cdr/resources/classes/xml_cdr.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 43157b363f..8f925bd4fd 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -421,11 +421,11 @@ if (!class_exists('xml_cdr')) { $caller_id_number = urldecode($xml->variables->origination_caller_id_number); } - //if the call is outbound use the external caller ID - if (urldecode($call_direction) == 'outbound' && isset($xml->variables->effective_caller_id_name)) { + //if the caller ID was updated then update the caller ID + if (isset($xml->variables->effective_caller_id_name)) { $caller_id_name = urldecode($xml->variables->effective_caller_id_name); } - if (urldecode($call_direction) == 'outbound' && isset($xml->variables->effective_caller_id_number)) { + if (isset($xml->variables->effective_caller_id_number)) { $caller_id_number = urldecode($xml->variables->effective_caller_id_number); }