Methods Summary |
---|
public void | answerCall(java.lang.String sessionDescription, int timeout)Answers an incoming call with the specified session description. The
method is only valid to call when the session state is in
{@link SipSessionState#INCOMING_CALL}.
|
public void | changeCall(java.lang.String sessionDescription, int timeout)Changes the session description during a call. The method is only valid
to call when the session state is in {@link SipSessionState#IN_CALL}.
|
public void | endCall()Ends an established call, terminates an outgoing call or rejects an
incoming call. The method is only valid to call when the session state is
in {@link SipSessionState#IN_CALL},
{@link SipSessionState#INCOMING_CALL},
{@link SipSessionState#OUTGOING_CALL} or
{@link SipSessionState#OUTGOING_CALL_RING_BACK}.
|
public java.lang.String | getCallId()Gets the call ID of the session.
|
public java.lang.String | getLocalIp()Gets the IP address of the local host on which this SIP session runs.
|
public android.net.sip.SipProfile | getLocalProfile()Gets the SIP profile that this session is associated with.
|
public android.net.sip.SipProfile | getPeerProfile()Gets the SIP profile that this session is connected to. Only available
when the session is associated with a SIP dialog.
|
public int | getState()Gets the session state. The value returned must be one of the states in
{@link SipSessionState}.
|
public boolean | isInCall()Checks if the session is in a call.
|
public void | makeCall(android.net.sip.SipProfile callee, java.lang.String sessionDescription, int timeout)Initiates a call to the specified profile. The session listener is called
back upon defined session events. The method is only valid to call when
the session state is in {@link SipSessionState#READY_TO_CALL}.
|
public void | register(int duration)Performs registration to the server specified by the associated local
profile. The session listener is called back upon success or failure of
registration. The method is only valid to call when the session state is
in {@link SipSessionState#READY_TO_CALL}.
|
public void | setListener(android.net.sip.ISipSessionListener listener)Sets the listener to listen to the session events. A {@link ISipSession}
can only hold one listener at a time. Subsequent calls to this method
override the previous listener.
|
public void | unregister()Performs unregistration to the server specified by the associated local
profile. Unregistration is technically the same as registration with zero
expiration duration. The session listener is called back upon success or
failure of unregistration. The method is only valid to call when the
session state is in {@link SipSessionState#READY_TO_CALL}.
|