On Android devices, when the local user uses an app that integrates the Agora RTC SDK for real-time engagement, and then dials or answers a phone call, the audio stream is still sent to remote users.
The SDK listens for Android call events and calls disableAudio
to disable the audio module by default when the user dials or answers a phone call. If you add business logic that intercepts call events in your app, the SDK can no longer determine when a user is dialing or receiving a call, so this issue occurs.
To solve the issue, do the following:
CALL_STATE_RINGING
CALL_STATE_OFFHOOK