Check both voice & data registration state for MO Call
MO call should be originated even if voice is OOS
but data is in service.
Use combined registration state to make MO call
Bug: 18625796
Change-Id: Ibc7c5182bd0d7eb54a58e088d174347b33b82b30
diff --git a/src/com/android/services/telephony/TelephonyConnectionService.java b/src/com/android/services/telephony/TelephonyConnectionService.java
index 46bad01..946ee3e 100644
--- a/src/com/android/services/telephony/TelephonyConnectionService.java
+++ b/src/com/android/services/telephony/TelephonyConnectionService.java
@@ -145,7 +145,12 @@
android.telephony.DisconnectCause.OUT_OF_SERVICE, "Phone is null"));
}
+ // Check both voice & data RAT to enable normal CS call,
+ // when voice RAT is OOS but Data RAT is present.
int state = phone.getServiceState().getState();
+ if (state == ServiceState.STATE_OUT_OF_SERVICE) {
+ state = phone.getServiceState().getDataRegState();
+ }
boolean useEmergencyCallHelper = false;
if (isEmergencyNumber) {