Update v_xml_cdr_import.php

This commit is contained in:
FusionPBX
2020-05-06 14:19:28 -06:00
committed by GitHub
parent 33d06e7f67
commit 71e861a68c

View File

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