From 2890f005f615629b1623e95a46bcff5de79f9506 Mon Sep 17 00:00:00 2001 From: Fernando Mendioroz Date: Mon, 14 Aug 2017 12:30:20 -0300 Subject: [PATCH] Change CDR status to lowercase 'completed' when 'updateInCompleteCallDetailRecordsToCompletedByInstanceId' applies. Issue #2162 --- .../webapp/WEB-INF/scripts/mariadb/sql/call-detail-records.xml | 2 +- .../src/main/webapp/WEB-INF/sql/call-detail-records.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/restcomm/restcomm.application/src/main/webapp/WEB-INF/scripts/mariadb/sql/call-detail-records.xml b/restcomm/restcomm.application/src/main/webapp/WEB-INF/scripts/mariadb/sql/call-detail-records.xml index 1a51c5d9ff..90ee1ae9fa 100644 --- a/restcomm/restcomm.application/src/main/webapp/WEB-INF/scripts/mariadb/sql/call-detail-records.xml +++ b/restcomm/restcomm.application/src/main/webapp/WEB-INF/scripts/mariadb/sql/call-detail-records.xml @@ -209,7 +209,7 @@ UPDATE restcomm_call_detail_records - SET status='COMPLETED' + SET status='completed' WHERE instanceid=#{instanceid} AND (UPPER(status) = ('IN_PROGRESS') OR UPPER(status) = ('IN-PROGRESS') OR UPPER(status) = ('RINGING') OR UPPER(status) = ('QUEUED')); diff --git a/restcomm/restcomm.application/src/main/webapp/WEB-INF/sql/call-detail-records.xml b/restcomm/restcomm.application/src/main/webapp/WEB-INF/sql/call-detail-records.xml index 0ec3a0061f..d5cd15615a 100644 --- a/restcomm/restcomm.application/src/main/webapp/WEB-INF/sql/call-detail-records.xml +++ b/restcomm/restcomm.application/src/main/webapp/WEB-INF/sql/call-detail-records.xml @@ -207,7 +207,7 @@ UPDATE "restcomm_call_detail_records" - SET "status"='COMPLETED' + SET "status"='completed' WHERE "instanceid"=#{instanceid} AND (UPPER("status") = ('IN_PROGRESS') OR UPPER("status") = ('IN-PROGRESS') OR UPPER("status") = ('RINGING') OR UPPER("status") = ('QUEUED'));