public static enum SipStream.CallState extends Enum<SipStream.CallState>
| Enum Constant and Description |
|---|
CANCELLED
If the call was cancelled you will end up in this state.
|
CANCELLING
If we receive a CANCEL request then we move over to the canceling
state.
|
COMPLETED
Completed always means that the call was first successfully
established and then completed at some point.
|
FAILED
The call failed.
|
IN_CALL
If a 2xx response is generated for the INVITE request, then the
call-state progresses to the "in call" state.
|
INITIAL
We have only seen an INVITE request and nothing else.
|
REDIRECT
The INVITE request was redirected (3xx responses)
|
REJECTED
The INVITE request was rejected (4xx and 6xx responses) for some
reason.
|
RINGING
If we receive a 180/183, the state will progress to the ringing
state.
|
START
Just to have an initial state when everything is created (and since I
decided to call the first "real" state for INITIAL I couldn't use
INIT or similar since it would be confusing)
|
TRYING
If we receive a 100 Trying response, the call-state will transition
over to the trying state.
|
UNKNOWN
Sorry, couldn't figure it out! Examine the call flow and let me know
which state you believe the call should be in.
|
| Modifier and Type | Method and Description |
|---|---|
static SipStream.CallState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SipStream.CallState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SipStream.CallState START
public static final SipStream.CallState INITIAL
public static final SipStream.CallState TRYING
public static final SipStream.CallState RINGING
public static final SipStream.CallState CANCELLING
public static final SipStream.CallState REDIRECT
public static final SipStream.CallState IN_CALL
FAILED. Hence, if you examine the states the call
has been and you see a transition from IN_CALL to
FAILED then you can be 100% sure that there is some
kind of NAT/FW issue going on. Typically, either the UA:s stamped the
wrong information in the Contact-header or there is a firewall
closing a little too fast.public static final SipStream.CallState CANCELLED
public static final SipStream.CallState COMPLETED
public static final SipStream.CallState REJECTED
public static final SipStream.CallState FAILED
public static final SipStream.CallState UNKNOWN
public static SipStream.CallState[] values()
for (SipStream.CallState c : SipStream.CallState.values()) System.out.println(c);
public static SipStream.CallState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021. All Rights Reserved.