Send pipes to connection service when RTT changes
When the ConnectionService turns on the RTT property unexpectedly, call
startRtt to pass down the RTT pipes.
Bug: 80257914
Test: manual
Change-Id: I1882a867812eb83dd915ede6d8391231113dec08
diff --git a/src/com/android/server/telecom/Call.java b/src/com/android/server/telecom/Call.java
index 8b1f67c..04f06a2 100644
--- a/src/com/android/server/telecom/Call.java
+++ b/src/com/android/server/telecom/Call.java
@@ -1456,6 +1456,10 @@
if ((mConnectionProperties & Connection.PROPERTY_IS_RTT) ==
Connection.PROPERTY_IS_RTT) {
createRttStreams();
+ // Call startRtt to pass the RTT pipes down to the connection service.
+ // They already turned on the RTT property so no request should be sent.
+ mConnectionService.startRtt(this,
+ getInCallToCsRttPipeForCs(), getCsToInCallRttPipeForCs());
mWasEverRtt = true;
if (isEmergencyCall()) {
mCallsManager.setAudioRoute(CallAudioState.ROUTE_SPEAKER, null);