Enum Class CallStatus

java.lang.Object
java.lang.Enum<CallStatus>
com.vonage.client.voice.CallStatus
All Implemented Interfaces:
Serializable, Comparable<CallStatus>, java.lang.constant.Constable

public enum CallStatus extends Enum<CallStatus>
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 Constants
    Enum Constant
    Description
    The 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 NCCO input action 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 Type
    Method
    Description
    static CallStatus
     
     
    static CallStatus
    Returns the enum constant of this class with the specified name.
    static CallStatus[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • STARTED

      public static final CallStatus STARTED
      Indicates that the call has been created.
    • RINGING

      public static final CallStatus RINGING
      The call is ringing.
    • ANSWERED

      public static final CallStatus ANSWERED
      The call was answered.
    • TIMEOUT

      public static final CallStatus TIMEOUT
      The duration of the ringing phase exceeded the specified ringing timeout duration.
    • MACHINE

      public static final CallStatus MACHINE
      For an outbound call made programmatically with machine detection enabled, this indicates a machine / voicemail answered the call.
    • COMPLETED

      public static final CallStatus COMPLETED
      The call has finished.
    • FAILED

      public static final CallStatus FAILED
      The outgoing call could not be connected.
    • REJECTED

      public static final CallStatus REJECTED
      The call was rejected by Vonage before it was connected.
    • BUSY

      public static final CallStatus BUSY
      The destination is on the line with another caller.
    • CANCELLED

      public static final CallStatus CANCELLED
      An outgoing call is cancelled by the originator before being answered.
    • TRANSFER

      public static final CallStatus TRANSFER
      A leg has been transferred from one conversation to another.
    • INPUT

      public static final CallStatus INPUT
      An NCCO input action has finished.
    • HUMAN

      public static final CallStatus HUMAN
      For an outbound call made programmatically with machine detection enabled, this indicates a human answered the call.
    • DISCONNECTED

      public static final CallStatus 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

      public static final CallStatus UNANSWERED
      Either the recipient is unreachable or the recipient declined the call.
    • UNKNOWN

      public static final CallStatus UNKNOWN
      Unknown status or event.
  • Method Details

    • values

      public static CallStatus[] 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

      public static CallStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CallStatus>
    • fromString

      public static CallStatus fromString(String name)