aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJayachandran C <jayachandranc@google.com>2017-05-11 11:43:52 -0700
committerJayachandran C <jayachandranc@google.com>2017-05-12 12:24:20 -0700
commit96e2d85ef5300fdac5acf89daabfa2584f969d0d (patch)
tree2785e2b11505977730943aefe2b8286933a864bc
parent4b437f1bff7a20eb5ab69e2b584c9cc21fe72ebd (diff)
downloadims-96e2d85ef5300fdac5acf89daabfa2584f969d0d.tar.gz
Pass correct cause codes for IMS Call ended during conference merge process
Test: Following scenarios for VoLTE and CS call and verified the cause sent in PreciseCallState. 1) Conference call merge 2) Conference call, one remote party ends the call 3) Conference call, all remote parties end the call 4) Conference call, hangup locally 5) Normal call and hangup locally 6) Normal call and remote party ends the call Bug: 38225047 Change-Id: Ia5a1b9d551395406f996a0602e57d49bbda29b53
-rw-r--r--src/java/com/android/ims/ImsCall.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/com/android/ims/ImsCall.java b/src/java/com/android/ims/ImsCall.java
index a6d0a0cc..b6370de0 100644
--- a/src/java/com/android/ims/ImsCall.java
+++ b/src/java/com/android/ims/ImsCall.java
@@ -1795,13 +1795,16 @@ public class ImsCall implements ICall {
setIsMerged(playDisconnectTone);
mSessionEndDuringMerge = true;
String reasonInfo;
+ int reasonCode = ImsReasonInfo.CODE_UNSPECIFIED;
if (playDisconnectTone) {
+ reasonCode = ImsReasonInfo.CODE_USER_TERMINATED_BY_REMOTE;
reasonInfo = "Call ended by network";
} else {
+ reasonCode = ImsReasonInfo.CODE_LOCAL_ENDED_BY_CONFERENCE_MERGE;
reasonInfo = "Call ended during conference merge process.";
}
mSessionEndDuringMergeReasonInfo = new ImsReasonInfo(
- ImsReasonInfo.CODE_UNSPECIFIED, 0, reasonInfo);
+ reasonCode, 0, reasonInfo);
}
}