Add hold_accum_seconds to the xml_cdr table

This commit is contained in:
FusionPBX 2024-08-28 10:05:48 -06:00 committed by GitHub
parent aabc2f33a8
commit 88bfb18e5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -601,6 +601,10 @@
$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "hold_accum_seconds";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "bridge_uuid";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
@ -1040,3 +1044,4 @@
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
?>

View File

@ -158,6 +158,7 @@ if (!class_exists('xml_cdr')) {
$this->fields[] = "mduration";
$this->fields[] = "billsec";
$this->fields[] = "billmsec";
$this->fields[] = "hold_accum_seconds";
$this->fields[] = "bridge_uuid";
$this->fields[] = "read_codec";
$this->fields[] = "read_rate";
@ -642,6 +643,7 @@ if (!class_exists('xml_cdr')) {
$this->array[$key][0]['mduration'] = urldecode($xml->variables->billmsec);
$this->array[$key][0]['billsec'] = urldecode($xml->variables->billsec);
$this->array[$key][0]['billmsec'] = urldecode($xml->variables->billmsec);
$this->array[$key][0]['hold_accum_seconds'] = urldecode($xml->variables->hold_accum_seconds);
//codecs
$this->array[$key][0]['read_codec'] = urldecode($xml->variables->read_codec);
@ -2191,3 +2193,4 @@ if (!class_exists('xml_cdr')) {
}
?>