public enum ChannelState extends Enum<ChannelState>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
int |
getStatus()
Returns the numerical status code.
|
static ChannelState |
valueOf(Integer status)
Returns value specified by int.
|
static ChannelState |
valueOf(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.
|
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
public static ChannelState[] values()
for (ChannelState c : ChannelState.values()) System.out.println(c);
public static ChannelState 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 nullpublic int getStatus()
public static ChannelState valueOf(Integer status)
ManagerEvent.getChannelState()
.status
- integer representation of the status.null
if none matches.Copyright © 2004–2020. All rights reserved.