lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb in twilio-ruby-6.7.1 vs lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb in twilio-ruby-6.8.0
- old
+ new
@@ -79,10 +79,11 @@
# @param [String] machine_detection_speech_end_threshold The number of 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] amd_status_callback The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
# @param [String] amd_status_callback_method The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
# @param [String] trim Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
+ # @param [String] call_token A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
# @return [ParticipantInstance] Created ParticipantInstance
def create(
from: nil,
to: nil,
status_callback: :unset,
@@ -127,11 +128,12 @@
machine_detection_speech_threshold: :unset,
machine_detection_speech_end_threshold: :unset,
machine_detection_silence_timeout: :unset,
amd_status_callback: :unset,
amd_status_callback_method: :unset,
- trim: :unset
+ trim: :unset,
+ call_token: :unset
)
data = Twilio::Values.of({
'From' => from,
'To' => to,
@@ -178,9 +180,10 @@
'MachineDetectionSpeechEndThreshold' => machine_detection_speech_end_threshold,
'MachineDetectionSilenceTimeout' => machine_detection_silence_timeout,
'AmdStatusCallback' => amd_status_callback,
'AmdStatusCallbackMethod' => amd_status_callback_method,
'Trim' => trim,
+ 'CallToken' => call_token,
})
payload = @version.create('POST', @uri, data: data)
ParticipantInstance.new(
@version,