Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9cc835d authored by James.cf Lin's avatar James.cf Lin Committed by Automerger Merge Worker
Browse files

Do not set the device to the forbidden state when receiving the response sip...

Do not set the device to the forbidden state when receiving the response sip code of the subscribe request is 403 am: 99991f49 am: ec6615a2

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/net/ims/+/16082203

Change-Id: Id87316763e665ff6d1f031ae169f374fbc043bbd
parents 7c0532c8 ec6615a2
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -238,14 +238,12 @@ public class UceDeviceState {
                if (requestType == UceController.REQUEST_TYPE_PUBLISH) {
                    // Provisioning error for publish request.
                    setDeviceState(DEVICE_STATE_PROVISION_ERROR);
                } else {
                    setDeviceState(DEVICE_STATE_FORBIDDEN);
                }
                    updateErrorCode(sipCode, reason, requestType);
                    // There is no request retry time for SIP code 403
                    removeRequestRetryTime();
                    // No timer to exit the forbidden state.
                    removeExitStateTimer();
                }
                break;

            case NetworkSipCode.SIP_CODE_NOT_FOUND:  // sip 404