lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-5.44.0 vs lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-5.45.0
- old
+ new
@@ -140,10 +140,14 @@
# this call with. Note that `byoc` is only meaningful when `to` is a phone number;
# it will otherwise be ignored. (Beta)
# @param [String] call_reason The Reason for the outgoing call. Use it to specify
# the purpose of the call that is presented on the called party's phone. (Branded
# Calls Beta)
+ # @param [String] recording_track The tracks to record. Can be: `inbound`,
+ # `outbound`, or `both`. The default is `both`. `inbound` only records the audio
+ # received by Twilio, `outbound` only records audio generated by Twilio, and
+ # `both` mixes the inbound and outbound audio.
# @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].
@@ -151,11 +155,11 @@
# 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] 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, async_amd: :unset, async_amd_status_callback: :unset, async_amd_status_callback_method: :unset, byoc: :unset, call_reason: :unset, url: :unset, twiml: :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, async_amd: :unset, async_amd_status_callback: :unset, async_amd_status_callback_method: :unset, byoc: :unset, call_reason: :unset, recording_track: :unset, url: :unset, twiml: :unset, application_sid: :unset)
data = Twilio::Values.of({
'To' => to,
'From' => from,
'Url' => url,
'Twiml' => twiml,
@@ -185,9 +189,10 @@
'AsyncAmd' => async_amd,
'AsyncAmdStatusCallback' => async_amd_status_callback,
'AsyncAmdStatusCallbackMethod' => async_amd_status_callback_method,
'Byoc' => byoc,
'CallReason' => call_reason,
+ 'RecordingTrack' => recording_track,
})
payload = @version.create('POST', @uri, data: data)
CallInstance.new(@version, payload, account_sid: @solution[:account_sid], )
\ No newline at end of file