Update xml_cdr.php

This commit is contained in:
FusionPBX
2019-09-12 18:28:34 -06:00
committed by GitHub
parent 4d01629bb7
commit 304eba3601
+7 -1
View File
@@ -401,6 +401,12 @@ if (!class_exists('xml_cdr')) {
$domain_uuid = urldecode($xml->variables->domain_uuid); $domain_uuid = urldecode($xml->variables->domain_uuid);
//get the domain name //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) { if (strlen($domain_name) == 0) {
$domain_name = urldecode($xml->variables->sip_req_host); $domain_name = urldecode($xml->variables->sip_req_host);
} }
@@ -1161,4 +1167,4 @@ if (!class_exists('xml_cdr')) {
$cdr->read_files(); $cdr->read_files();
*/ */
?> ?>