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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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