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 classNumber.BuilderCreate a new<Number>elementstatic classNumber.Event
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAmdStatusCallback()The URL we should call to send amd status information to your applicationHttpMethodgetAmdStatusCallbackMethod()HTTP Method to use with amd_status_callbackStringgetByoc()BYOC trunk SID (Beta)StringgetMachineDetection()Enable machine detection or end of greeting detectionIntegergetMachineDetectionSilenceTimeout()Number of milliseconds of initial silenceIntegergetMachineDetectionSpeechEndThreshold()Number of milliseconds of silence after speech activityIntegergetMachineDetectionSpeechThreshold()Number of milliseconds for measuring stick for the length of the speech activityIntegergetMachineDetectionTimeout()Number of seconds to wait for machine detectionHttpMethodgetMethod()TwiML URL methodPhoneNumbergetPhoneNumber()Phone Number to dialStringgetSendDigits()DTMF tones to play when the call is answeredURIgetStatusCallback()Status callback URLList<Number.Event>getStatusCallbackEvents()Events to call status callbackHttpMethodgetStatusCallbackMethod()Status callback URL methodURIgetUrl()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
-
-