mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update v_xml_cdr_import.php
This commit is contained in:
@@ -278,15 +278,23 @@
|
|||||||
$domain_name = urldecode($xml->variables->domain_name);
|
$domain_name = urldecode($xml->variables->domain_name);
|
||||||
$domain_uuid = urldecode($xml->variables->domain_uuid);
|
$domain_uuid = urldecode($xml->variables->domain_uuid);
|
||||||
|
|
||||||
//get the domain name from dialed_domain
|
//get the domain name
|
||||||
if (strlen($domain_name) == 0) {
|
if (strlen($domain_name) == 0) {
|
||||||
$domain_name = urldecode($xml->variables->dialed_domain);
|
$domain_name = urldecode($xml->variables->dialed_domain);
|
||||||
}
|
}
|
||||||
|
if (strlen($domain_name) == 0) {
|
||||||
//get the domain name from sip_req_host
|
$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);
|
||||||
}
|
}
|
||||||
|
if (strlen($domain_name) == 0) {
|
||||||
|
$presence_id = urldecode($xml->variables->presence_id);
|
||||||
|
if (strlen($presence_id) > 0) {
|
||||||
|
$presence_array = explode($presence_id);
|
||||||
|
$domain_name = $presence_array[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//send the domain name to the cdr log
|
//send the domain name to the cdr log
|
||||||
xml_cdr_log("\ndomain_name is `$domain_name`; domain_uuid is '$domain_uuid'\n");
|
xml_cdr_log("\ndomain_name is `$domain_name`; domain_uuid is '$domain_uuid'\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user