public enum HangupCause extends Enum<HangupCause>
Definitions from /include/asterisk/causes.h
.
Modifier and Type | Method and Description |
---|---|
static HangupCause |
getByCode(int code)
Returns the HangupCode by its numeric cause code.
|
int |
getCode()
Returns the numeric cause code.
|
String |
toString() |
static HangupCause |
valueOf(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.
|
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_MISDIALLED_TRUNK_PREFIX
public static final HangupCause AST_CAUSE_CHANNEL_UNACCEPTABLE
public static final HangupCause AST_CAUSE_CALL_AWARDED_DELIVERED
public static final HangupCause AST_CAUSE_NUMBER_PORTED_NOT_HERE
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_SUBSCRIBER_ABSENT
public static final HangupCause AST_CAUSE_CALL_REJECTED
public static final HangupCause AST_CAUSE_NUMBER_CHANGED
public static final HangupCause AST_CAUSE_REDIRECTED_TO_NEW_DESTINATION
public static final HangupCause AST_CAUSE_ANSWERED_ELSEWHERE
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
public static HangupCause[] values()
for (HangupCause c : HangupCause.values()) System.out.println(c);
public static HangupCause 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 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 String toString()
toString
in class Enum<HangupCause>
Copyright © 2004–2016. All rights reserved.