Add sip_call_id to the xml cdr import.

The sip_call_id is the Call-ID found in the SIP headers.
This commit is contained in:
FusionPBX 2021-07-31 19:25:23 -06:00 committed by GitHub
parent 34e3683527
commit 4da962e4e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,7 @@ if (!class_exists('xml_cdr')) {
$this->fields[] = "xml_cdr_uuid";
$this->fields[] = "domain_uuid";
$this->fields[] = "extension_uuid";
$this->fields[] = "sip_call_id";
$this->fields[] = "domain_name";
$this->fields[] = "accountcode";
$this->fields[] = "direction";
@ -354,6 +355,7 @@ if (!class_exists('xml_cdr')) {
$uuid = urldecode($xml->variables->uuid);
$this->array[$key]['xml_cdr_uuid'] = $uuid;
$this->array[$key]['destination_number'] = $destination_number;
$this->array[$key]['sip_call_id'] = urldecode($xml->variables->sip_call_id);
$this->array[$key]['source_number'] = urldecode($xml->variables->effective_caller_id_number);
$this->array[$key]['user_context'] = urldecode($xml->variables->user_context);
$this->array[$key]['network_addr'] = urldecode($xml->variables->sip_network_ip);