Package com.vonage.client.voice
Class PhoneEndpoint
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.voice.PhoneEndpoint
-
Constructor Summary
ConstructorsConstructorDescriptionPhoneEndpoint(String number) Constructor.PhoneEndpoint(String number, String dtmfAnswer) Constructor. -
Method Summary
Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
PhoneEndpoint
Constructor.- Parameters:
number- The phone number to connect to in E.164 format.
-
PhoneEndpoint
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
Description copied from interface:EndpointEndpoint type name. -
toLog
Description copied from interface:EndpointDescription of the endpoint. -
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.
-