From 304eba36017b2c88ae4f69ae94b02dd3f45b094a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 12 Sep 2019 18:28:34 -0600 Subject: [PATCH] Update xml_cdr.php --- app/xml_cdr/resources/classes/xml_cdr.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 9370a7ffbf..c92a889fb1 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -401,6 +401,12 @@ if (!class_exists('xml_cdr')) { $domain_uuid = urldecode($xml->variables->domain_uuid); //get the domain name + if (strlen($domain_name) == 0) { + $domain_name = urldecode($xml->variables->dialed_domain); + } + if (strlen($domain_name) == 0) { + $domain_name = urldecode($xml->variables->sip_invite_domain); + } if (strlen($domain_name) == 0) { $domain_name = urldecode($xml->variables->sip_req_host); } @@ -1161,4 +1167,4 @@ if (!class_exists('xml_cdr')) { $cdr->read_files(); */ -?> \ No newline at end of file +?>