Loading
Speculative DISCONNECTING fix for ImsPhoneCallTracker
There is an issue occuring that causes an ImsPhoneConnection to be left in the ImsPhoneCall without ever being cleaned up. This causes the ImsPhoneCall never move into the IDLE state and blocks new outgoing calls from being made. Through speculation and code observation, it looks as though this case may happen when the ImsService never responds to a terminate request and telephony never receives the onDisconnect callback. This change adds a new timeout that will expire after some time and verify that the ImsPhoneConnection did indeed eventually disconnect. If it did not, then we can assume that the modem is not still tracking the call and we can call onDisconnect ourselves. Bug: 35012199 Test: Manual Change-Id: I288d2950cd245ed6e40dd364e68d739a7d122d6c