Update xml_cdr.php
This commit is contained in:
parent
3fe09e6267
commit
edf8117215
|
|
@ -334,6 +334,13 @@ if (!class_exists('xml_cdr')) {
|
|||
if (strlen($domain_name) == 0) {
|
||||
$domain_name = check_str(urldecode($xml->variables->sip_req_host));
|
||||
}
|
||||
if (strlen($domain_name) == 0) {
|
||||
$presence_id = check_str(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
|
||||
//$this->log("\ndomain_name is `$domain_name`; domain_uuid is '$domain_uuid'\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue