Package com.vonage.client.voice
Enum Class CallStatus
- All Implemented Interfaces:
Serializable,Comparable<CallStatus>,java.lang.constant.Constable
Describes the status of the call, and also the event in
EventWebhook.getStatus().-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe call was answered.The destination is on the line with another caller.An outgoing call is cancelled by the originator before being answered.The call has finished.If the WebSocket connection is terminated from the application side for any reason, then the disconnected event callback will be sent.The outgoing call could not be connected.For an outbound call made programmatically with machine detection enabled, this indicates a human answered the call.An NCCOinputaction has finished.For an outbound call made programmatically with machine detection enabled, this indicates a machine / voicemail answered the call.The call was rejected by Vonage before it was connected.The call is ringing.Indicates that the call has been created.The duration of the ringing phase exceeded the specified ringing timeout duration.A leg has been transferred from one conversation to another.Either the recipient is unreachable or the recipient declined the call.Unknown status or event. -
Method Summary
Modifier and TypeMethodDescriptionstatic CallStatusfromString(String name) toString()static CallStatusReturns the enum constant of this class with the specified name.static CallStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STARTED
Indicates that the call has been created. -
RINGING
The call is ringing. -
ANSWERED
The call was answered. -
TIMEOUT
The duration of the ringing phase exceeded the specified ringing timeout duration. -
MACHINE
For an outbound call made programmatically with machine detection enabled, this indicates a machine / voicemail answered the call. -
COMPLETED
The call has finished. -
FAILED
The outgoing call could not be connected. -
REJECTED
The call was rejected by Vonage before it was connected. -
BUSY
The destination is on the line with another caller. -
CANCELLED
An outgoing call is cancelled by the originator before being answered. -
TRANSFER
A leg has been transferred from one conversation to another. -
INPUT
An NCCOinputaction has finished. -
HUMAN
For an outbound call made programmatically with machine detection enabled, this indicates a human answered the call. -
DISCONNECTED
If the WebSocket connection is terminated from the application side for any reason, then the disconnected event callback will be sent. If the response contains an NCCO then this will be processed, if no NCCO is present then normal execution will continue. -
UNANSWERED
Either the recipient is unreachable or the recipient declined the call. -
UNKNOWN
Unknown status or event.
-
-
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
-
toString
- Overrides:
toStringin classEnum<CallStatus>
-
fromString
-