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);