|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ChannelState>
org.asteriskjava.live.ChannelState
public enum ChannelState
The lifecycle status of an AsteriskChannel
.
Defined in channel.c
function ast_state2str
.
Enum Constant Summary | |
---|---|
BUSY
Line is busy. |
|
DIALING
Digits (or equivalent) have been dialed. |
|
DIALING_OFFHOOK
Digits (or equivalent) have been dialed while offhook. |
|
DOWN
Channel is down and available. |
|
HUNGUP
The channel has been hung up and is not longer available on the Asterisk server. |
|
OFFHOOK
Channel is off hook. |
|
PRERING
Channel has detected an incoming call and is waiting for ring. |
|
RING
Line is ringing. |
|
RINGING
Remote end is ringing. |
|
RSRVD
Channel is down, but reserved. |
|
UP
Line is up. |
Method Summary | |
---|---|
int |
getStatus()
Returns the numerical status code. |
static ChannelState |
valueOf(java.lang.Integer status)
Returns value specified by int. |
static ChannelState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ChannelState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ChannelState DOWN
public static final ChannelState RSRVD
public static final ChannelState OFFHOOK
public static final ChannelState DIALING
public static final ChannelState RING
public static final ChannelState RINGING
public static final ChannelState UP
public static final ChannelState BUSY
public static final ChannelState DIALING_OFFHOOK
public static final ChannelState PRERING
public static final ChannelState HUNGUP
Method Detail |
---|
public static ChannelState[] values()
for (ChannelState c : ChannelState.values()) System.out.println(c);
public static ChannelState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int getStatus()
public static ChannelState valueOf(java.lang.Integer status)
AbstractChannelStateEvent.getChannelState()
.
status
- integer representation of the status.
null
if none matches.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |