public static class SipAudioCall.Listener extends Object
Many of these events are also received by SipSession.Listener
.
Constructor and Description |
---|
Listener() |
Modifier and Type | Method and Description |
---|---|
void |
onCallBusy(SipAudioCall call)
Called when the peer is busy during session initialization.
|
void |
onCallEnded(SipAudioCall call)
Called when the session is terminated.
|
void |
onCallEstablished(SipAudioCall call)
Called when the session is established.
|
void |
onCallHeld(SipAudioCall call)
Called when the call is on hold.
|
void |
onCalling(SipAudioCall call)
Called when a request is sent out to initiate a new call.
|
void |
onChanged(SipAudioCall call)
Called when an event occurs and the corresponding callback is not
overridden.
|
void |
onError(SipAudioCall call,
int errorCode,
String errorMessage)
Called when an error occurs.
|
void |
onReadyToCall(SipAudioCall call)
Called when the call object is ready to make another call.
|
void |
onRinging(SipAudioCall call,
SipProfile caller)
Called when a new call comes in.
|
void |
onRingingBack(SipAudioCall call)
Called when a RINGING response is received for the INVITE request
sent.
|
public void onReadyToCall(SipAudioCall call)
onChanged(android.net.sip.SipAudioCall)
.call
- the call object that is ready to make another callpublic void onCalling(SipAudioCall call)
onChanged(android.net.sip.SipAudioCall)
.call
- the call object that carries out the audio callpublic void onRinging(SipAudioCall call, SipProfile caller)
onChanged(android.net.sip.SipAudioCall)
.call
- the call object that carries out the audio callcaller
- the SIP profile of the callerpublic void onRingingBack(SipAudioCall call)
onChanged(android.net.sip.SipAudioCall)
.call
- the call object that carries out the audio callpublic void onCallEstablished(SipAudioCall call)
onChanged(android.net.sip.SipAudioCall)
.call
- the call object that carries out the audio callpublic void onCallEnded(SipAudioCall call)
onChanged(android.net.sip.SipAudioCall)
.call
- the call object that carries out the audio callpublic void onCallBusy(SipAudioCall call)
onChanged(android.net.sip.SipAudioCall)
.call
- the call object that carries out the audio callpublic void onCallHeld(SipAudioCall call)
onChanged(android.net.sip.SipAudioCall)
.call
- the call object that carries out the audio callpublic void onError(SipAudioCall call, int errorCode, String errorMessage)
call
- the call object that carries out the audio callerrorCode
- error code of this errorerrorMessage
- error messageSipErrorCode
public void onChanged(SipAudioCall call)
onError(android.net.sip.SipAudioCall, int, java.lang.String)
.