Class PhoneEndpoint

java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.voice.PhoneEndpoint
All Implemented Interfaces:
Jsonable, Endpoint

public class PhoneEndpoint extends JsonableBaseObject implements Endpoint
  • Constructor Details

    • PhoneEndpoint

      public PhoneEndpoint(String number)
      Constructor.
      Parameters:
      number - The phone number to connect to in E.164 format.
    • PhoneEndpoint

      public PhoneEndpoint(String number, String dtmfAnswer)
      Constructor.
      Parameters:
      number - The phone number to connect to in E.164 format.
      dtmfAnswer - Set the digits that are sent to the user as soon as the Call is answered. The * and # digits are respected. You create pauses using p. Each pause is 500ms.
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Endpoint
      Endpoint type name.
      Specified by:
      getType in interface Endpoint
      Returns:
      The type of endpoint as a string.
    • toLog

      public String toLog()
      Description copied from interface: Endpoint
      Description of the endpoint.
      Specified by:
      toLog in interface Endpoint
      Returns:
      String representation of the object.
    • getNumber

      public String getNumber()
      The phone number to connect to in E.164 format.
      Returns:
      The phone number as a string.
    • getDtmfAnswer

      Set the digits that are sent to the user as soon as the Call is answered. The * and # digits are respected. You create pauses using p. Each pause is 500ms.
      Returns:
      The DTMF digits as a string.