Add "SIP forbidden" as valid reason for call pull failure.
Vendor testing uncovered the fact that a call pull could fail due to a
SIP Forbidden error. Adding this disconnect cause to the pull fail logic
to ensure that a failure to pull due to this reason will result in the
call becoming external again.
Bug: 29906222
Change-Id: Ifab30cff23bb512731da0e16ea00e86c22d8226b
diff --git a/src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java b/src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java
index d3de950..58babbd 100644
--- a/src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java
+++ b/src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java
@@ -1471,7 +1471,8 @@
if (conn != null) {
if (conn.isPulledCall() && (
reasonInfo.getCode() == ImsReasonInfo.CODE_CALL_PULL_OUT_OF_SYNC ||
- reasonInfo.getCode() == ImsReasonInfo.CODE_SIP_TEMPRARILY_UNAVAILABLE) &&
+ reasonInfo.getCode() == ImsReasonInfo.CODE_SIP_TEMPRARILY_UNAVAILABLE ||
+ reasonInfo.getCode() == ImsReasonInfo.CODE_SIP_FORBIDDEN) &&
mPhone != null && mPhone.getExternalCallTracker() != null) {
log("Call pull failed.");