Update xml_cdr.php

This commit is contained in:
FusionPBX 2016-12-21 14:02:56 -07:00 committed by GitHub
parent 166645cf9a
commit f4378f8c2d
1 changed files with 13 additions and 0 deletions

View File

@ -142,6 +142,11 @@ if (!class_exists('xml_cdr')) {
$this->fields[] = "hangup_cause";
$this->fields[] = "hangup_cause_q850";
$this->fields[] = "sip_hangup_disposition";
if (is_array($_SESSION['cdr']['field'])) {
foreach ($_SESSION['cdr']['field'] as $field) {
$this->fields[] = $field;
}
}
}
/**
@ -342,6 +347,14 @@ if (!class_exists('xml_cdr')) {
}
}
//dynamic cdr fields
if (is_array($_SESSION['cdr']['field'])) {
foreach ($_SESSION['cdr']['field'] as $field) {
$this->fields[] = $field;
$this->array[$key][$field] = check_str(urldecode($xml->variables->$field));
}
}
//send the domain name to the cdr log
//$this->log("\ndomain_name is `$domain_name`; domain_uuid is '$domain_uuid'\n");