From 115e9e00552e22e758f0e6076a111825d53d98c7 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 21 Oct 2023 13:26:26 -0600 Subject: [PATCH] Use lower case status values to match the translation labels. --- app/xml_cdr/resources/classes/xml_cdr.php | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index e34c35f552..4a63b5bbb7 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -1074,35 +1074,35 @@ if (!class_exists('xml_cdr')) { //call centers if ($app['application'] == 'call_centers') { if (isset($row["caller_profile"]["transfer_source"])) { - $app['status'] = 'Answered'; //Out + $app['status'] = 'answered'; //Out } else { - $app['status'] = 'Waited'; //In + $app['status'] = 'waited'; //In } } //call flows if ($app['application'] == 'call_flows') { - $app['status'] = 'Routed'; + $app['status'] = 'routed'; } //conferences if ($app['application'] == 'conferences') { - $app['status'] = 'Answered'; + $app['status'] = 'answered'; } //destinations if ($app['application'] == 'destinations') { - $app['status'] = 'Routed'; + $app['status'] = 'routed'; } //extensions if ($app['application'] == 'extensions') { if ($this->billsec == 0) { - $app['status'] = 'Missed'; + $app['status'] = 'missed'; } else { - $app['status'] = 'Answered'; + $app['status'] = 'answered'; } } @@ -1117,12 +1117,12 @@ if (!class_exists('xml_cdr')) { //ring groups if ($app['application'] == 'ring_groups') { - $app['status'] = 'Waited'; + $app['status'] = 'waited'; } //time conditions if ($app['application'] == 'time_conditions') { - $app['status'] = 'Routed'; + $app['status'] = 'routed'; } //valet park @@ -1139,14 +1139,14 @@ if (!class_exists('xml_cdr')) { //set the call park status if (strpos($row["caller_profile"]["transfer_source"], 'park+') !== false) { //$app['status'] = 'In'; - $app['status'] = 'Parked'; + $app['status'] = 'parked'; //skip the next row $skip_row = true; } else { //$app['status'] = 'Out'; - $app['status'] = 'Unparked'; + $app['status'] = 'unparked'; } } @@ -1157,7 +1157,7 @@ if (!class_exists('xml_cdr')) { //voicemails if ($app['application'] == 'voicemails') { - $app['status'] = 'Answered'; + $app['status'] = 'answered'; } //debug - add the callee_id_number to the end of the status