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

Commit 7139e6e9 authored by Hyunho's avatar Hyunho
Browse files

Add state for 480,486,500,503,603 responses of PUBLISH

Upon receiving 480,486,500,503,603 responses to PUBLISH, the device state set to re_try.
If the device state is retry, the PUBLISH requests should be blocked until the vendor called CapabilityExchangeEventListener#onPublishUpdated or CapabilityExchangeEventListener#onRequestPublishCapabilities.

Test: atest PublishControllerImplTest CapabilityRequestTest UceControllerTest
Bug: b/228781651
Change-Id: I0a4d41a885ff3d212f1d003602b83ccf5ed0a430
parent e75cf2a2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -297,7 +297,12 @@ public class UceDeviceState {
                break;

            case NetworkSipCode.SIP_CODE_REQUEST_ENTITY_TOO_LARGE:   // sip 413
            case NetworkSipCode.SIP_CODE_TEMPORARILY_UNAVAILABLE:   // sip 480
            case NetworkSipCode.SIP_CODE_BUSY:   // sip 486
            case NetworkSipCode.SIP_CODE_SERVER_INTERNAL_ERROR:   // sip 500
            case NetworkSipCode.SIP_CODE_SERVICE_UNAVAILABLE:   // sip 503
            case NetworkSipCode.SIP_CODE_BUSY_EVERYWHERE:   // sip 600
            case NetworkSipCode.SIP_CODE_DECLINE:   // sip 603
                if (requestType == UceController.REQUEST_TYPE_PUBLISH) {
                    setDeviceState(DEVICE_STATE_NO_RETRY);
                    // There is no request retry time for SIP code 413