diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index 5622e9275a..6e0a663c01 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -193,7 +193,7 @@ $domain_uuid = check_str(urldecode($xml->variables->domain_uuid)); //get the domain name from sip_req_host - if (strlen($domain_name) > 0) { + if (strlen($domain_name) == 0) { $domain_name = check_str(urldecode($xml->variables->sip_req_host)); }