From 3088942b9eb5f121a2718517b95d59f35b00205f Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Tue, 28 Nov 2017 09:04:31 -0800 Subject: Add carrier config to always play hold tone when remotely held. By default, a remote hold tone is played when a call is remotely held. In other words if the callee puts the caller on hold, they will hear a tone indicating they're on hold. Current behavior is to only do this when the audio direction for the call is inactive. Some carriers wish to have this behavior when the audio direction is active. This new carrier config option is OFF by default and will be selectively enabled for carriers which wish to play a hold tone when the audio is active. Test: Manual Bug: 64099717 Change-Id: I747a5fb650c8e83a61b6512375e43e45a5ea0362 --- telephony/java/android/telephony/CarrierConfigManager.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index 1d081119ffd3..5568a6eeedb3 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -1259,6 +1259,19 @@ public class CarrierConfigManager { */ public static final String KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL = "allow_hold_in_ims_call"; + + /** + * Flag indicating whether the carrier always wants to play an "on-hold" tone when a call has + * been remotely held. + *

+ * When {@code true}, if the IMS stack indicates that the call session has been held, a signal + * will be sent from Telephony to play an audible "on-hold" tone played to the user. + * When {@code false}, a hold tone will only be played if the audio session becomes inactive. + * @hide + */ + public static final String KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL = + "always_play_remote_hold_tone_bool"; + /** * 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 @@ -1654,6 +1667,7 @@ public class CarrierConfigManager { static { sDefaults = new PersistableBundle(); sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true); + sDefaults.putBoolean(KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL, 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); -- cgit v1.2.3-59-g8ed1b