|
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<HangupCause>
org.asteriskjava.live.HangupCause
public enum HangupCause
Asterisk hangup cause.
Definitions from /include/asterisk/causes.h
.
Method Summary | |
---|---|
static HangupCause |
getByCode(int code)
Returns the HangupCode by its numeric cause code. |
int |
getCode()
Returns the numeric cause code. |
java.lang.String |
toString()
|
static HangupCause |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static HangupCause[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final HangupCause AST_CAUSE_UNALLOCATED
public static final HangupCause AST_CAUSE_NO_ROUTE_TRANSIT_NET
public static final HangupCause AST_CAUSE_NO_ROUTE_DESTINATION
public static final HangupCause AST_CAUSE_CHANNEL_UNACCEPTABLE
public static final HangupCause AST_CAUSE_CALL_AWARDED_DELIVERED
public static final HangupCause AST_CAUSE_NORMAL_CLEARING
public static final HangupCause AST_CAUSE_USER_BUSY
public static final HangupCause AST_CAUSE_NO_USER_RESPONSE
public static final HangupCause AST_CAUSE_NO_ANSWER
public static final HangupCause AST_CAUSE_CALL_REJECTED
public static final HangupCause AST_CAUSE_NUMBER_CHANGED
public static final HangupCause AST_CAUSE_DESTINATION_OUT_OF_ORDER
public static final HangupCause AST_CAUSE_INVALID_NUMBER_FORMAT
public static final HangupCause AST_CAUSE_FACILITY_REJECTED
public static final HangupCause AST_CAUSE_RESPONSE_TO_STATUS_ENQUIRY
public static final HangupCause AST_CAUSE_NORMAL_UNSPECIFIED
public static final HangupCause AST_CAUSE_NORMAL_CIRCUIT_CONGESTION
public static final HangupCause AST_CAUSE_NETWORK_OUT_OF_ORDER
public static final HangupCause AST_CAUSE_NORMAL_TEMPORARY_FAILURE
public static final HangupCause AST_CAUSE_SWITCH_CONGESTION
public static final HangupCause AST_CAUSE_ACCESS_INFO_DISCARDED
public static final HangupCause AST_CAUSE_REQUESTED_CHAN_UNAVAIL
public static final HangupCause AST_CAUSE_PRE_EMPTED
public static final HangupCause AST_CAUSE_FACILITY_NOT_SUBSCRIBED
public static final HangupCause AST_CAUSE_OUTGOING_CALL_BARRED
public static final HangupCause AST_CAUSE_INCOMING_CALL_BARRED
public static final HangupCause AST_CAUSE_BEARERCAPABILITY_NOTAUTH
public static final HangupCause AST_CAUSE_BEARERCAPABILITY_NOTAVAIL
public static final HangupCause AST_CAUSE_BEARERCAPABILITY_NOTIMPL
public static final HangupCause AST_CAUSE_CHAN_NOT_IMPLEMENTED
public static final HangupCause AST_CAUSE_FACILITY_NOT_IMPLEMENTED
public static final HangupCause AST_CAUSE_INVALID_CALL_REFERENCE
public static final HangupCause AST_CAUSE_INCOMPATIBLE_DESTINATION
public static final HangupCause AST_CAUSE_INVALID_MSG_UNSPECIFIED
public static final HangupCause AST_CAUSE_MANDATORY_IE_MISSING
public static final HangupCause AST_CAUSE_MESSAGE_TYPE_NONEXIST
public static final HangupCause AST_CAUSE_WRONG_MESSAGE
public static final HangupCause AST_CAUSE_IE_NONEXIST
public static final HangupCause AST_CAUSE_INVALID_IE_CONTENTS
public static final HangupCause AST_CAUSE_WRONG_CALL_STATE
public static final HangupCause AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE
public static final HangupCause AST_CAUSE_MANDATORY_IE_LENGTH_ERROR
public static final HangupCause AST_CAUSE_PROTOCOL_ERROR
public static final HangupCause AST_CAUSE_INTERWORKING
public static final HangupCause AST_CAUSE_BUSY
public static final HangupCause AST_CAUSE_FAILURE
public static final HangupCause AST_CAUSE_NORMAL
public static final HangupCause AST_CAUSE_NOANSWER
public static final HangupCause AST_CAUSE_CONGESTION
public static final HangupCause AST_CAUSE_UNREGISTERED
public static final HangupCause AST_CAUSE_NOTDEFINED
public static final HangupCause AST_CAUSE_NOSUCHDRIVER
Method Detail |
---|
public static HangupCause[] values()
for (HangupCause c : HangupCause.values()) System.out.println(c);
public static HangupCause 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 getCode()
Using this method in client code is discouraged.
public static HangupCause getByCode(int code)
Using this method in client code is discouraged.
code
- the numeric cause code.
null
if there is no such HangupCause.public java.lang.String toString()
toString
in class java.lang.Enum<HangupCause>
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |