Add carrier config for auto redialing 911

Bug: 111235453
Test: manual (modify IMS stack locally to always return the 380 error
when dialing in airplane mode)

Change-Id: I029d2227ce62bb11fa91e9d5338a667d6e3dd59b
This commit is contained in:
Hall Liu
2018-07-25 18:48:55 -07:00
parent b0e3c67824
commit 7d9a33efb7

View File

@@ -1481,6 +1481,15 @@ public class CarrierConfigManager {
public static final String KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL =
"always_play_remote_hold_tone_bool";
/**
* When true, the Telephony stack will automatically turn off airplane mode and retry a wifi
* emergency call over the cell network if the initial attempt at dialing was met with a SIP 308
* error.
* @hide
*/
public static final String KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL =
"auto_retry_failed_wifi_emergency_call";
/**
* When true, indicates that adding a call is disabled when there is an ongoing video call
* or when there is an ongoing call on wifi which was downgraded from video and VoWifi is
@@ -2009,6 +2018,7 @@ public class CarrierConfigManager {
sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL, false);
sDefaults.putBoolean(KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL, false);
sDefaults.putBoolean(KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL, false);
sDefaults.putBoolean(KEY_ADDITIONAL_CALL_SETTING_BOOL, true);
sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_LOCAL_DTMF_TONES_BOOL, true);