From 729c06cb253a78282b681858b966e808650387ac Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 31 Jan 2020 17:17:55 -0700 Subject: [PATCH] Update xml_cdr.php --- app/xml_cdr/resources/classes/xml_cdr.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index cd6b1dd99d..2e1e9ade98 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -317,6 +317,12 @@ if (!class_exists('xml_cdr')) { //get the caller details $caller_id_name = urldecode($xml->variables->effective_caller_id_name); $caller_id_number = urldecode($xml->variables->effective_caller_id_number); + if (isset($xml->variables->effective_caller_id_name)) { + $caller_id_name = urldecode($xml->variables->effective_caller_id_name); + } + if (isset($xml->variables->effective_caller_id_number)) { + $caller_id_number = urldecode($xml->variables->effective_caller_id_number); + } $caller_id_destination = urldecode($xml->variables->caller_destination); foreach ($xml->callflow as $row) { $caller_id_number = urldecode($row->caller_profile->caller_id_number);