Skip to content

Commit 05e8236

Browse files
If call disconnected call status open (#82)
1 parent ae43e03 commit 05e8236

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/iemr/ecd/service/associate/CallClosureImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,10 @@ public String closeCall(CallClosureDTO request) {
159159

160160
if ("introductory".equalsIgnoreCase(callObj.getEcdCallType()) && Boolean.TRUE.equals(obj.getIsCallDisconnected()) && StringUtils.hasText(request.getPreferredLanguage())) {
161161
callObj.setCallStatus(Constants.OPEN);
162-
callObj.setAllocationStatus(Constants.UNALLOCATED);
162+
//callObj.setAllocationStatus(Constants.UNALLOCATED);
163163
}else if(Boolean.TRUE.equals(obj.getIsCallAnswered())){
164164
callObj.setCallStatus(Constants.COMPLETED);
165165
}
166-
167166
if (obj.getIsFurtherCallRequired() != null && !obj.getIsFurtherCallRequired()) {
168167
callObj.setCallStatus(Constants.COMPLETED);
169168
} else {
@@ -204,6 +203,7 @@ public String closeCall(CallClosureDTO request) {
204203
callObj.setCallStatus(Constants.OPEN);
205204
}
206205
isLanguageMapped = isLanguageMappedWithUser(request);
206+
207207
if(!isLanguageMapped && callObj.getEcdCallType().equalsIgnoreCase("introductory")) {
208208
callObj.setAllocatedUserId(null);
209209
callObj.setCallStatus(Constants.OPEN);

0 commit comments

Comments
 (0)