From f94bad17301883c1f1a569d37d3b736ffa2b0f14 Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Tue, 16 Aug 2022 02:00:43 -0400 Subject: [PATCH] [xml_cdr] more caller id handling (#6452) --- app/xml_cdr/resources/classes/xml_cdr.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index b71d244850..e181dbd616 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -321,6 +321,15 @@ if (!class_exists('xml_cdr')) { if (isset($xml->variables->effective_caller_id_name)) { $caller_id_name = urldecode($xml->variables->effective_caller_id_name); } + + if (isset($xml->variables->origination_caller_id_name)) { + $caller_id_name = urldecode($xml->variables->origination_caller_id_name); + } + + if (isset($xml->variables->origination_caller_id_number)) { + $caller_id_number = urldecode($xml->variables->origination_caller_id_number); + } + if (urldecode($xml->variables->call_direction) == 'outbound' && isset($xml->variables->effective_caller_id_number)) { $caller_id_number = urldecode($xml->variables->effective_caller_id_number); }