pjsip-android
pjsip-android copied to clipboard
[Android] Remote OnHold is note received in onCallMediaState
Mobile Android , kotlin libpjsua2.so
I am trying to detect when the remote user puts the call on hold , i am monitoring all call state functions and i do not see any event happening, but i can listen to the music that starts playing, do i need to setup any specific configuration to be able to receive a notification when the remote call is put on hold?
these are the functions that i am monitoring on SipCall.kt
class SipCall : Call {
override fun onCallState(prm: OnCallStateParam) { Log.d("", "---> onCallState") }
override fun onCallMediaState(prm: OnCallMediaStateParam) { Log.d("", "---> ${info.state}") }
override fun onCallMediaEvent(prm: OnCallMediaEventParam) { super.onCallMediaEvent(prm) Log.d("", "---> onCallMediaEvent") }
}