public static class SipSession.Listener extends Object
Many of these events are also received by SipAudioCall.Listener
.
Constructor and Description |
---|
SipSession.Listener() |
Modifier and Type | Method and Description |
---|---|
void |
onCallBusy(SipSession session)
Called when the peer is busy during session initialization.
|
void |
onCallChangeFailed(SipSession session,
int errorCode,
String errorMessage)
Called when an error occurs during session modification negotiation.
|
void |
onCallEnded(SipSession session)
Called when the session is terminated.
|
void |
onCallEstablished(SipSession session,
String sessionDescription)
Called when the session is established.
|
void |
onCalling(SipSession session)
Called when an INVITE request is sent to initiate a new call.
|
void |
onCallTransferring(SipSession newSession,
String sessionDescription)
Called when the call is being transferred to a new one.
|
void |
onError(SipSession session,
int errorCode,
String errorMessage)
Called when an error occurs during session initialization and
termination.
|
void |
onRegistering(SipSession session)
Called when a registration request is sent.
|
void |
onRegistrationDone(SipSession session,
int duration)
Called when registration is successfully done.
|
void |
onRegistrationFailed(SipSession session,
int errorCode,
String errorMessage)
Called when the registration fails.
|
void |
onRegistrationTimeout(SipSession session)
Called when the registration gets timed out.
|
void |
onRinging(SipSession session,
SipProfile caller,
String sessionDescription)
Called when an INVITE request is received.
|
void |
onRingingBack(SipSession session)
Called when a RINGING response is received for the INVITE request sent
|
public void onCalling(SipSession session)
session
- the session object that carries out the transactionpublic void onRinging(SipSession session, SipProfile caller, String sessionDescription)
session
- the session object that carries out the transactioncaller
- the SIP profile of the callersessionDescription
- the caller's session descriptionpublic void onRingingBack(SipSession session)
session
- the session object that carries out the transactionpublic void onCallEstablished(SipSession session, String sessionDescription)
session
- the session object that is associated with the dialogsessionDescription
- the peer's session descriptionpublic void onCallEnded(SipSession session)
session
- the session object that is associated with the dialogpublic void onCallBusy(SipSession session)
session
- the session object that carries out the transactionpublic void onCallTransferring(SipSession newSession, String sessionDescription)
newSession
- the new session that the call will be transferred tosessionDescription
- the new peer's session descriptionpublic void onError(SipSession session, int errorCode, String errorMessage)
session
- the session object that carries out the transactionerrorCode
- error code defined in SipErrorCode
errorMessage
- error messagepublic void onCallChangeFailed(SipSession session, int errorCode, String errorMessage)
session
- the session object that carries out the transactionerrorCode
- error code defined in SipErrorCode
errorMessage
- error messagepublic void onRegistering(SipSession session)
session
- the session object that carries out the transactionpublic void onRegistrationDone(SipSession session, int duration)
session
- the session object that carries out the transactionduration
- duration in second before the registration expirespublic void onRegistrationFailed(SipSession session, int errorCode, String errorMessage)
session
- the session object that carries out the transactionerrorCode
- error code defined in SipErrorCode
errorMessage
- error messagepublic void onRegistrationTimeout(SipSession session)
session
- the session object that carries out the transaction