Package com.twilio.twiml.voice
Class Sip.Builder
- java.lang.Object
-
- com.twilio.twiml.TwiML.Builder<Sip.Builder>
-
- com.twilio.twiml.voice.Sip.Builder
-
- Enclosing class:
- Sip
public static class Sip.Builder extends TwiML.Builder<Sip.Builder>
Create a new<Sip>element
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Sip.BuilderamdStatusCallback(String amdStatusCallback)The URL we should call to send amd status information to your applicationSip.BuilderamdStatusCallbackMethod(HttpMethod amdStatusCallbackMethod)HTTP Method to use with amd_status_callbackSipbuild()Create and return resulting<Sip>elementstatic Sip.BuilderfromXml(String xml)Create and return a<Sip.Builder>from an XML stringSip.BuildermachineDetection(String machineDetection)Enable machine detection or end of greeting detectionSip.BuildermachineDetectionSilenceTimeout(Integer machineDetectionSilenceTimeout)Number of milliseconds of initial silenceSip.BuildermachineDetectionSpeechEndThreshold(Integer machineDetectionSpeechEndThreshold)Number of milliseconds of silence after speech activitySip.BuildermachineDetectionSpeechThreshold(Integer machineDetectionSpeechThreshold)Number of milliseconds for measuring stick for the length of the speech activitySip.BuildermachineDetectionTimeout(Integer machineDetectionTimeout)Number of seconds to wait for machine detectionSip.Buildermethod(HttpMethod method)Action URL methodSip.Builderpassword(String password)SIP PasswordSip.BuilderstatusCallback(String statusCallback)Status callback URLSip.BuilderstatusCallback(URI statusCallback)Status callback URLSip.BuilderstatusCallbackEvents(Sip.Event statusCallbackEvent)Status callback eventsSip.BuilderstatusCallbackEvents(List<Sip.Event> statusCallbackEvent)Status callback eventsSip.BuilderstatusCallbackMethod(HttpMethod statusCallbackMethod)Status callback URL methodSip.Builderurl(String url)Action URLSip.Builderurl(URI url)Action URLSip.Builderusername(String username)SIP Username-
Methods inherited from class com.twilio.twiml.TwiML.Builder
addChild, addText, option
-
-
-
-
Method Detail
-
fromXml
public static Sip.Builder fromXml(String xml) throws TwiMLException
Create and return a<Sip.Builder>from an XML string- Throws:
TwiMLException
-
username
public Sip.Builder username(String username)
SIP Username
-
password
public Sip.Builder password(String password)
SIP Password
-
url
public Sip.Builder url(URI url)
Action URL
-
url
public Sip.Builder url(String url)
Action URL
-
method
public Sip.Builder method(HttpMethod method)
Action URL method
-
statusCallbackEvents
public Sip.Builder statusCallbackEvents(List<Sip.Event> statusCallbackEvent)
Status callback events
-
statusCallbackEvents
public Sip.Builder statusCallbackEvents(Sip.Event statusCallbackEvent)
Status callback events
-
statusCallback
public Sip.Builder statusCallback(URI statusCallback)
Status callback URL
-
statusCallback
public Sip.Builder statusCallback(String statusCallback)
Status callback URL
-
statusCallbackMethod
public Sip.Builder statusCallbackMethod(HttpMethod statusCallbackMethod)
Status callback URL method
-
machineDetection
public Sip.Builder machineDetection(String machineDetection)
Enable machine detection or end of greeting detection
-
amdStatusCallbackMethod
public Sip.Builder amdStatusCallbackMethod(HttpMethod amdStatusCallbackMethod)
HTTP Method to use with amd_status_callback
-
amdStatusCallback
public Sip.Builder amdStatusCallback(String amdStatusCallback)
The URL we should call to send amd status information to your application
-
machineDetectionTimeout
public Sip.Builder machineDetectionTimeout(Integer machineDetectionTimeout)
Number of seconds to wait for machine detection
-
machineDetectionSpeechThreshold
public Sip.Builder machineDetectionSpeechThreshold(Integer machineDetectionSpeechThreshold)
Number of milliseconds for measuring stick for the length of the speech activity
-
machineDetectionSpeechEndThreshold
public Sip.Builder machineDetectionSpeechEndThreshold(Integer machineDetectionSpeechEndThreshold)
Number of milliseconds of silence after speech activity
-
machineDetectionSilenceTimeout
public Sip.Builder machineDetectionSilenceTimeout(Integer machineDetectionSilenceTimeout)
Number of milliseconds of initial silence
-
build
public Sip build()
Create and return resulting<Sip>element
-
-