Package com.twilio.twiml.voice
Class Number
- java.lang.Object
-
- com.twilio.twiml.TwiML
-
- com.twilio.twiml.voice.Number
-
public class Number extends TwiML
TwiML wrapper for<Number>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Number.Builder
Create a new<Number>
elementstatic class
Number.Event
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAmdStatusCallback()
The URL we should call to send amd status information to your applicationHttpMethod
getAmdStatusCallbackMethod()
HTTP Method to use with amd_status_callbackString
getByoc()
BYOC trunk SID (Beta)String
getMachineDetection()
Enable machine detection or end of greeting detectionInteger
getMachineDetectionSilenceTimeout()
Number of milliseconds of initial silenceInteger
getMachineDetectionSpeechEndThreshold()
Number of milliseconds of silence after speech activityInteger
getMachineDetectionSpeechThreshold()
Number of milliseconds for measuring stick for the length of the speech activityInteger
getMachineDetectionTimeout()
Number of seconds to wait for machine detectionHttpMethod
getMethod()
TwiML URL methodPhoneNumber
getPhoneNumber()
Phone Number to dialString
getSendDigits()
DTMF tones to play when the call is answeredURI
getStatusCallback()
Status callback URLList<Number.Event>
getStatusCallbackEvents()
Events to call status callbackHttpMethod
getStatusCallbackMethod()
Status callback URL methodURI
getUrl()
TwiML URL-
Methods inherited from class com.twilio.twiml.TwiML
equals, getChildren, getOptions, getTagName, hashCode, toUrl, toXml
-
-
-
-
Method Detail
-
getSendDigits
public String getSendDigits()
DTMF tones to play when the call is answered- Returns:
- DTMF tones to play when the call is answered
-
getUrl
public URI getUrl()
TwiML URL- Returns:
- TwiML URL
-
getMethod
public HttpMethod getMethod()
TwiML URL method- Returns:
- TwiML URL method
-
getStatusCallbackEvents
public List<Number.Event> getStatusCallbackEvents()
Events to call status callback- Returns:
- Events to call status callback
-
getStatusCallback
public URI getStatusCallback()
Status callback URL- Returns:
- Status callback URL
-
getStatusCallbackMethod
public HttpMethod getStatusCallbackMethod()
Status callback URL method- Returns:
- Status callback URL method
-
getByoc
public String getByoc()
BYOC trunk SID (Beta)- Returns:
- BYOC trunk SID (Beta)
-
getMachineDetection
public String getMachineDetection()
Enable machine detection or end of greeting detection- Returns:
- Enable machine detection or end of greeting detection
-
getAmdStatusCallbackMethod
public HttpMethod getAmdStatusCallbackMethod()
HTTP Method to use with amd_status_callback- Returns:
- HTTP Method to use with amd_status_callback
-
getAmdStatusCallback
public String getAmdStatusCallback()
The URL we should call to send amd status information to your application- Returns:
- The URL we should call to send amd status information to your application
-
getMachineDetectionTimeout
public Integer getMachineDetectionTimeout()
Number of seconds to wait for machine detection- Returns:
- Number of seconds to wait for machine detection
-
getMachineDetectionSpeechThreshold
public Integer getMachineDetectionSpeechThreshold()
Number of milliseconds for measuring stick for the length of the speech activity- Returns:
- Number of milliseconds for measuring stick for the length of the speech activity
-
getMachineDetectionSpeechEndThreshold
public Integer getMachineDetectionSpeechEndThreshold()
Number of milliseconds of silence after speech activity- Returns:
- Number of milliseconds of silence after speech activity
-
getMachineDetectionSilenceTimeout
public Integer getMachineDetectionSilenceTimeout()
Number of milliseconds of initial silence- Returns:
- Number of milliseconds of initial silence
-
getPhoneNumber
public PhoneNumber getPhoneNumber()
Phone Number to dial- Returns:
- Phone Number to dial
-
-