From 3336e1420a480fe068b14331c75efa067a3c51de Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 15 Mar 2022 14:50:28 -0600 Subject: [PATCH] If caller_destination is not set use dialed_user --- app/xml_cdr/resources/classes/xml_cdr.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 31ea9620e3..41c8484199 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -369,6 +369,9 @@ if (!class_exists('xml_cdr')) { if (isset($xml->variables->sip_h_caller_destination) ) { $caller_destination = urldecode($xml->variables->sip_h_caller_destination); } + if (!isset($caller_destination) && isset($xml->variables->dialed_user)) { + $caller_destination = urldecode($xml->variables->dialed_user); + } //set missed calls if (isset($xml->variables->answer_stamp) && isset($xml->variables->bridge_uuid)) {