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

Commit df4ffddd authored by joonhunshin's avatar joonhunshin
Browse files

Add carrier config key to support SIP SUBSCRIBE retry

Bug: 323278352
Test: build pass
Change-Id: Iaff8930c4739007881887ab9268dc987dc26693f
parent aaec57c2
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -5306,6 +5306,19 @@ public class CarrierConfigManager {
        public static final String KEY_ENABLE_PRESENCE_GROUP_SUBSCRIBE_BOOL =
                KEY_PREFIX + "enable_presence_group_subscribe_bool";
        /**
         * SIP SUBSCRIBE retry duration used when device doesn't receive a response to SIP
         * SUBSCRIBE request.
         * If this value is not defined or defined as negative value, the device does not retry
         * the SIP SUBSCRIBE.
         * If the value is 0 then device retries immediately upon timeout.
         * If the value is > 0 then device waits for configured duration and retries after timeout
         * is detected
         * @hide
         */
        public static final String KEY_SUBSCRIBE_RETRY_DURATION_MILLIS_LONG =
                KEY_PREFIX + "subscribe_retry_duration_millis_long";
        /**
         * Flag indicating whether or not to use SIP URI when send a presence subscribe.
         * When {@code true}, the device sets the To and Contact header to be SIP URI using
@@ -5982,6 +5995,7 @@ public class CarrierConfigManager {
            defaults.putBoolean(KEY_ENABLE_PRESENCE_CAPABILITY_EXCHANGE_BOOL, false);
            defaults.putBoolean(KEY_RCS_BULK_CAPABILITY_EXCHANGE_BOOL, false);
            defaults.putBoolean(KEY_ENABLE_PRESENCE_GROUP_SUBSCRIBE_BOOL, false);
            defaults.putInt(KEY_SUBSCRIBE_RETRY_DURATION_MILLIS_LONG, -1);
            defaults.putBoolean(KEY_USE_SIP_URI_FOR_PRESENCE_SUBSCRIBE_BOOL, false);
            defaults.putInt(KEY_NON_RCS_CAPABILITIES_CACHE_EXPIRATION_SEC_INT, 30 * 24 * 60 * 60);
            defaults.putBoolean(KEY_RCS_REQUEST_FORBIDDEN_BY_SIP_489_BOOL, false);