| Constructor and Description |
|---|
CallCreator(Endpoint to,
PhoneNumber from,
String applicationSid)
Construct a new CallCreator.
|
CallCreator(Endpoint to,
PhoneNumber from,
URI url)
Construct a new CallCreator.
|
CallCreator(String pathAccountSid,
Endpoint to,
PhoneNumber from,
String applicationSid)
Construct a new CallCreator.
|
CallCreator(String pathAccountSid,
Endpoint to,
PhoneNumber from,
URI url)
Construct a new CallCreator.
|
| Modifier and Type | Method and Description |
|---|---|
Call |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
CallCreator |
setApplicationSid(String applicationSid)
The 34 character sid of the application Twilio should use to handle this
phone call.
|
CallCreator |
setFallbackMethod(HttpMethod fallbackMethod)
The HTTP method that Twilio should use to request the `FallbackUrl`.
|
CallCreator |
setFallbackUrl(String fallbackUrl)
A URL that Twilio will request if an error occurs requesting or executing the
TwiML at `Url`.
|
CallCreator |
setFallbackUrl(URI fallbackUrl)
A URL that Twilio will request if an error occurs requesting or executing the
TwiML at `Url`.
|
CallCreator |
setIfMachine(String ifMachine)
Tell Twilio to try and determine if a machine (like voicemail) or a human has
answered the call.
|
CallCreator |
setMachineDetection(String machineDetection)
Twilio will try to detect if a human, fax machine or answering machine has
answered the call.
|
CallCreator |
setMachineDetectionTimeout(Integer machineDetectionTimeout)
The integer number of miliseconds that Twilio should wait while
machine_detection is performned before timing out..
|
CallCreator |
setMethod(HttpMethod method)
The HTTP method Twilio should use when requesting the URL.
|
CallCreator |
setRecord(Boolean record)
Set this parameter to true to record the entirety of a phone call.
|
CallCreator |
setRecordingChannels(String recordingChannels)
The recording_channels.
|
CallCreator |
setRecordingStatusCallback(String recordingStatusCallback)
The recording_status_callback.
|
CallCreator |
setRecordingStatusCallbackEvent(List<String> recordingStatusCallbackEvent)
The recording_status_callback_event.
|
CallCreator |
setRecordingStatusCallbackEvent(String recordingStatusCallbackEvent)
The recording_status_callback_event.
|
CallCreator |
setRecordingStatusCallbackMethod(HttpMethod recordingStatusCallbackMethod)
The recording_status_callback_method.
|
CallCreator |
setSendDigits(String sendDigits)
A string of keys to dial after connecting to the number.
|
CallCreator |
setSipAuthPassword(String sipAuthPassword)
The sip_auth_password.
|
CallCreator |
setSipAuthUsername(String sipAuthUsername)
The sip_auth_username.
|
CallCreator |
setStatusCallback(String statusCallback)
A URL that Twilio will request when the call ends to notify your app.
|
CallCreator |
setStatusCallback(URI statusCallback)
A URL that Twilio will request when the call ends to notify your app.
|
CallCreator |
setStatusCallbackEvent(List<String> statusCallbackEvent)
The status_callback_event.
|
CallCreator |
setStatusCallbackEvent(String statusCallbackEvent)
The status_callback_event.
|
CallCreator |
setStatusCallbackMethod(HttpMethod statusCallbackMethod)
The HTTP method that Twilio should use to request the `StatusCallback`.
|
CallCreator |
setTimeout(Integer timeout)
The integer number of seconds that Twilio should allow the phone to ring
before assuming there is no answer.
|
CallCreator |
setUrl(String url)
The fully qualified URL that should be consulted when the call connects.
|
CallCreator |
setUrl(URI url)
The fully qualified URL that should be consulted when the call connects.
|
create, createAsync, createAsyncpublic CallCreator(Endpoint to, PhoneNumber from, URI url)
to - Phone number, SIP address or client identifier to callfrom - Twilio number from which to originate the callurl - Url from which to fetch TwiMLpublic CallCreator(String pathAccountSid, Endpoint to, PhoneNumber from, URI url)
pathAccountSid - The account_sidto - Phone number, SIP address or client identifier to callfrom - Twilio number from which to originate the callurl - Url from which to fetch TwiMLpublic CallCreator(Endpoint to, PhoneNumber from, String applicationSid)
to - Phone number, SIP address or client identifier to callfrom - Twilio number from which to originate the callapplicationSid - ApplicationSid that configures from where to fetch
TwiMLpublic CallCreator(String pathAccountSid, Endpoint to, PhoneNumber from, String applicationSid)
pathAccountSid - The account_sidto - Phone number, SIP address or client identifier to callfrom - Twilio number from which to originate the callapplicationSid - ApplicationSid that configures from where to fetch
TwiMLpublic CallCreator setMethod(HttpMethod method)
method - HTTP method to use to fetch TwiMLpublic CallCreator setFallbackUrl(URI fallbackUrl)
fallbackUrl - Fallback URL in case of errorpublic CallCreator setFallbackUrl(String fallbackUrl)
fallbackUrl - Fallback URL in case of errorpublic CallCreator setFallbackMethod(HttpMethod fallbackMethod)
fallbackMethod - HTTP Method to use with FallbackUrlpublic CallCreator setStatusCallback(URI statusCallback)
statusCallback - Status Callback URLpublic CallCreator setStatusCallback(String statusCallback)
statusCallback - Status Callback URLpublic CallCreator setStatusCallbackEvent(List<String> statusCallbackEvent)
statusCallbackEvent - The status_callback_eventpublic CallCreator setStatusCallbackEvent(String statusCallbackEvent)
statusCallbackEvent - The status_callback_eventpublic CallCreator setStatusCallbackMethod(HttpMethod statusCallbackMethod)
statusCallbackMethod - HTTP Method to use with StatusCallbackpublic CallCreator setSendDigits(String sendDigits)
sendDigits - Digits to sendpublic CallCreator setIfMachine(String ifMachine)
ifMachine - Action to take if a machine has answered the callpublic CallCreator setTimeout(Integer timeout)
timeout - Number of seconds to wait for an answerpublic CallCreator setRecord(Boolean record)
record - Whether or not to record the Callpublic CallCreator setRecordingChannels(String recordingChannels)
recordingChannels - The recording_channelspublic CallCreator setRecordingStatusCallback(String recordingStatusCallback)
recordingStatusCallback - The recording_status_callbackpublic CallCreator setRecordingStatusCallbackMethod(HttpMethod recordingStatusCallbackMethod)
recordingStatusCallbackMethod - The recording_status_callback_methodpublic CallCreator setSipAuthUsername(String sipAuthUsername)
sipAuthUsername - The sip_auth_usernamepublic CallCreator setSipAuthPassword(String sipAuthPassword)
sipAuthPassword - The sip_auth_passwordpublic CallCreator setMachineDetection(String machineDetection)
machineDetection - Enable machine detection or end of greeting detectionpublic CallCreator setMachineDetectionTimeout(Integer machineDetectionTimeout)
machineDetectionTimeout - Number of miliseconds to wait for machine
detectionpublic CallCreator setRecordingStatusCallbackEvent(List<String> recordingStatusCallbackEvent)
recordingStatusCallbackEvent - The recording_status_callback_eventpublic CallCreator setRecordingStatusCallbackEvent(String recordingStatusCallbackEvent)
recordingStatusCallbackEvent - The recording_status_callback_eventpublic CallCreator setUrl(URI url)
url - Url from which to fetch TwiMLpublic CallCreator setUrl(String url)
url - Url from which to fetch TwiMLpublic CallCreator setApplicationSid(String applicationSid)
applicationSid - ApplicationSid that configures from where to fetch
TwiMLpublic Call create(TwilioRestClient client)
Copyright © 2016 Twilio, Inc. All Rights Reserved.