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

Commit 276979a3 authored by Hyunho's avatar Hyunho Committed by Automerger Merge Worker
Browse files

Processing of the received SIP code 999 am: f7a91ba6 am: 108b7c52

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

Change-Id: I5863ac29bf162f02e9ef53d109eeb07faf383371
parents 036e64e8 108b7c52
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -199,6 +199,13 @@ public class PublishRequestResponse {
    }

    private void onNetworkResponse(int sipCode, String reason) {
        // When we send a request to PUBLISH and there is no change to the UCE capabilities, we
        // expected onCommandError() with COMMAND_CODE_NO_CHANGE.
        // But some of the vendor will instead send SIP code 999.
        if (sipCode == 999) {
            onCommandError(RcsCapabilityExchangeImplBase.COMMAND_CODE_NO_CHANGE);
            return;
        }
        mResponseTimestamp = Instant.now();
        mNetworkRespSipCode = Optional.of(sipCode);
        mReasonPhrase = Optional.ofNullable(reason);
@@ -214,6 +221,13 @@ public class PublishRequestResponse {

    private void onNetworkResponse(int sipCode, String reasonPhrase, int reasonHeaderCause,
            String reasonHeaderText) {
        // When we send a request to PUBLISH and there is no change to the UCE capabilities, we
        // expected onCommandError() with COMMAND_CODE_NO_CHANGE.
        // But some of the vendor will instead send SIP code 999.
        if (sipCode == 999) {
            onCommandError(RcsCapabilityExchangeImplBase.COMMAND_CODE_NO_CHANGE);
            return;
        }
        mResponseTimestamp = Instant.now();
        mNetworkRespSipCode = Optional.of(sipCode);
        mReasonPhrase = Optional.ofNullable(reasonPhrase);