Package org.linphone.core
Enum Class Reason
- All Implemented Interfaces:
Serializable
,Comparable<Reason>
,Constable
Enum describing various failure reasons or contextual information for some
events.
see:
see:
see:
events.
see:
Call.getReason()
see:
ProxyConfig.getError()
see:
ErrorInfo.getReason()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAddress incomplete.Bad event.Bad gateway.Phone line was busy.Conditional Request Failed.The call has been declined.Do not disturb reason.Authentication failed due to bad credentials or resource forbidden.Resource no longer exists.Transport error: connection failures, disconnections etc...Resource moved permanently.Operation could not be executed by server or remote client because it didn't
have any context for it.No reason has been set by the core.No response received from remote.Operation is rejected due to incompatible or unsupported media parameters.The call was not answered in time (request timeout)
Destination of the call was not found.Not implemented.Server timeout.The received request contains a Session-Expires header field with a duration
below the minimum timer.Temporarily unavailable.The call has been transferred.Operation is unauthorized because missing credential.Unknown reason.Unsupported content. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Reason
fromInt
(int value) protected static Reason[]
fromIntArray
(int[] values) int
toInt()
protected static int[]
toIntArray
(Reason[] values) static Reason
Returns the enum constant of this class with the specified name.static Reason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
No reason has been set by the core.
-
NoResponse
No response received from remote.
-
Forbidden
Authentication failed due to bad credentials or resource forbidden.
-
Declined
The call has been declined.
-
NotFound
Destination of the call was not found.
-
NotAnswered
The call was not answered in time (request timeout)
-
Busy
Phone line was busy.
-
UnsupportedContent
Unsupported content.
-
BadEvent
Bad event.
-
IOError
Transport error: connection failures, disconnections etc...
-
DoNotDisturb
Do not disturb reason.
-
Unauthorized
Operation is unauthorized because missing credential.
-
NotAcceptable
Operation is rejected due to incompatible or unsupported media parameters.
-
NoMatch
Operation could not be executed by server or remote client because it didn't
have any context for it.
-
MovedPermanently
Resource moved permanently.
-
Gone
Resource no longer exists.
-
AddressIncomplete
Address incomplete.
-
NotImplemented
Not implemented.
-
BadGateway
Bad gateway.
-
SessionIntervalTooSmall
The received request contains a Session-Expires header field with a duration
below the minimum timer.
-
ServerTimeout
Server timeout.
-
Unknown
Unknown reason.
-
Transferred
The call has been transferred.
-
ConditionalRequestFailed
Conditional Request Failed.
-
-
Field Details
-
mValue
protected final int mValue
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromInt
- Throws:
RuntimeException
-
fromIntArray
- Throws:
RuntimeException
-
toIntArray
- Throws:
RuntimeException
-
toInt
public int toInt()
-