From 71e861a68c1853310fba53341883ccfd542faee6 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 6 May 2020 14:19:28 -0600 Subject: [PATCH] Update v_xml_cdr_import.php --- app/xml_cdr/v_xml_cdr_import.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index 086fcfee33..2485a7e7f3 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -278,6 +278,11 @@ $domain_name = urldecode($xml->variables->domain_name); $domain_uuid = urldecode($xml->variables->domain_uuid); + //get the domain name from dialed_domain + if (strlen($domain_name) == 0) { + $domain_name = urldecode($xml->variables->dialed_domain); + } + //get the domain name from sip_req_host if (strlen($domain_name) == 0) { $domain_name = urldecode($xml->variables->sip_req_host);