Added in API level 9
Deprecated in API level 31

SipSession.State


public static class SipSession.State
extends Object

java.lang.Object
   ↳ android.net.sip.SipSession.State


Defines SIP session states, such as "registering", "outgoing call", and "in call".

Summary

Constants

int DEREGISTERING

When the unregistration request is sent out.

int INCOMING_CALL

When an INVITE request is received.

int INCOMING_CALL_ANSWERING

When an OK response is sent for the INVITE request received.

int IN_CALL

When a call is established.

int NOT_DEFINED

Not defined.

int OUTGOING_CALL

When an INVITE request is sent.

int OUTGOING_CALL_CANCELING

When a CANCEL request is sent for the INVITE request sent.

int OUTGOING_CALL_RING_BACK

When a RINGING response is received for the INVITE request sent.

int PINGING

When an OPTIONS request is sent.

int READY_TO_CALL

When session is ready to initiate a call or transaction.

int REGISTERING

When the registration request is sent out.

Public methods

static String toString(int state)

Converts the state to string.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Constants

DEREGISTERING

Added in API level 9
public static final int DEREGISTERING

When the unregistration request is sent out.

Constant Value: 2 (0x00000002)

INCOMING_CALL

Added in API level 9
public static final int INCOMING_CALL

When an INVITE request is received.

Constant Value: 3 (0x00000003)

INCOMING_CALL_ANSWERING

Added in API level 9
public static final int INCOMING_CALL_ANSWERING

When an OK response is sent for the INVITE request received.

Constant Value: 4 (0x00000004)

IN_CALL

Added in API level 9
public static final int IN_CALL

When a call is established.

Constant Value: 8 (0x00000008)

NOT_DEFINED

Added in API level 9
public static final int NOT_DEFINED

Not defined.

Constant Value: 101 (0x00000065)

OUTGOING_CALL

Added in API level 9
public static final int OUTGOING_CALL

When an INVITE request is sent.

Constant Value: 5 (0x00000005)

OUTGOING_CALL_CANCELING

Added in API level 9
public static final int OUTGOING_CALL_CANCELING

When a CANCEL request is sent for the INVITE request sent.

Constant Value: 7 (0x00000007)

OUTGOING_CALL_RING_BACK

Added in API level 9
public static final int OUTGOING_CALL_RING_BACK

When a RINGING response is received for the INVITE request sent.

Constant Value: 6 (0x00000006)

PINGING

Added in API level 9
public static final int PINGING

When an OPTIONS request is sent.

Constant Value: 9 (0x00000009)

READY_TO_CALL

Added in API level 9
public static final int READY_TO_CALL

When session is ready to initiate a call or transaction.

Constant Value: 0 (0x00000000)

REGISTERING

Added in API level 9
public static final int REGISTERING

When the registration request is sent out.

Constant Value: 1 (0x00000001)

Public methods

toString

Added in API level 9
public static String toString (int state)

Converts the state to string.

Parameters
state int

Returns
String