lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-5.30.0 vs lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-5.31.0
- old
+ new
@@ -125,26 +125,27 @@
# milliseconds of silence after speech activity at which point the speech activity
# is considered complete. Possible Values: 500-5000. Default: 1200.
# @param [String] machine_detection_silence_timeout The number of milliseconds of
# initial silence after which an `unknown` AnsweredBy result will be returned.
# Possible Values: 2000-10000. Default: 5000.
- # @param [String] twiml TwiML instructions for the call Twilio will use without
- # fetching Twiml from url parameter. If both `twiml` and `url` are provided then
- # `twiml` parameter will be ignored.
# @param [String] url The absolute URL that returns the TwiML instructions for the
# call. We will call this URL using the `method` when the call connects. For more
# information, see the [Url
# Parameter](https://www.twilio.com/docs/voice/make-calls#specify-a-url-parameter)
# section in [Making Calls](https://www.twilio.com/docs/voice/make-calls).
+ # @param [String] twiml TwiML instructions for the call Twilio will use without
+ # fetching Twiml from url parameter. If both `twiml` and `url` are provided then
+ # `twiml` parameter will be ignored.
# @param [String] application_sid The SID of the Application resource that will
# handle the call, if the call will be handled by an application.
# @return [CallInstance] Newly created CallInstance
- def create(to: nil, from: nil, method: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_event: :unset, status_callback_method: :unset, send_digits: :unset, timeout: :unset, record: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, machine_detection: :unset, machine_detection_timeout: :unset, recording_status_callback_event: :unset, trim: :unset, caller_id: :unset, machine_detection_speech_threshold: :unset, machine_detection_speech_end_threshold: :unset, machine_detection_silence_timeout: :unset, twiml: :unset, url: :unset, application_sid: :unset)
+ def create(to: nil, from: nil, method: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_event: :unset, status_callback_method: :unset, send_digits: :unset, timeout: :unset, record: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, machine_detection: :unset, machine_detection_timeout: :unset, recording_status_callback_event: :unset, trim: :unset, caller_id: :unset, machine_detection_speech_threshold: :unset, machine_detection_speech_end_threshold: :unset, machine_detection_silence_timeout: :unset, url: :unset, twiml: :unset, application_sid: :unset)
data = Twilio::Values.of({
'To' => to,
'From' => from,
'Url' => url,
+ 'Twiml' => twiml,
'ApplicationSid' => application_sid,
'Method' => method,
'FallbackUrl' => fallback_url,
'FallbackMethod' => fallback_method,
'StatusCallback' => status_callback,
@@ -164,10 +165,9 @@
'Trim' => trim,
'CallerId' => caller_id,
'MachineDetectionSpeechThreshold' => machine_detection_speech_threshold,
'MachineDetectionSpeechEndThreshold' => machine_detection_speech_end_threshold,
'MachineDetectionSilenceTimeout' => machine_detection_silence_timeout,
- 'Twiml' => twiml,
})
payload = @version.create(
'POST',
@uri,
\ No newline at end of file