twilio-ruby 5.72.0 → 5.72.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +10 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +34 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +19 -5
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ff85f862e19ab053e7c76008d7958ace553b801
|
4
|
+
data.tar.gz: 0ef6213308056d5194d86331595f636a4a269975
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d5e18e054f72a4923b5c887e8340a6f020f643344e5fc917bbad822cc86c7d7d79cb7d8b2bb4221f9118718959197f298e30bed6924166e575fa46eff2d3752
|
7
|
+
data.tar.gz: c022194789766eab0873586d836b2b08010e4c54f84a1f4de5595bc6cb6a4234d6a119d43699f1f0433b6d1095fa15bb74830b59466252a3e9a50baf1078dd81
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2022-10-05] Version 5.72.1
|
5
|
+
---------------------------
|
6
|
+
**Api**
|
7
|
+
- Added `virtual-agent` to `usage_record` API.
|
8
|
+
- Add AMD attributes to participant create request
|
9
|
+
|
10
|
+
**Twiml**
|
11
|
+
- Add AMD attributes to `Number` and `Sip`
|
12
|
+
|
13
|
+
|
4
14
|
[2022-09-07] Version 5.72.0
|
5
15
|
---------------------------
|
6
16
|
**Flex**
|
data/README.md
CHANGED
@@ -34,13 +34,13 @@ This library supports the following Ruby implementations:
|
|
34
34
|
To install using [Bundler][bundler] grab the latest stable version:
|
35
35
|
|
36
36
|
```ruby
|
37
|
-
gem 'twilio-ruby', '~> 5.72.
|
37
|
+
gem 'twilio-ruby', '~> 5.72.1'
|
38
38
|
```
|
39
39
|
|
40
40
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
41
41
|
|
42
42
|
```bash
|
43
|
-
gem install twilio-ruby -v 5.72.
|
43
|
+
gem install twilio-ruby -v 5.72.1
|
44
44
|
```
|
45
45
|
|
46
46
|
To build and install the development branch yourself from the latest source:
|
@@ -169,8 +169,34 @@ module Twilio
|
|
169
169
|
# Twilio. `both` records the audio that is received and sent by Twilio.
|
170
170
|
# @param [String] time_limit The maximum duration of the call in seconds.
|
171
171
|
# Constraints depend on account and configuration.
|
172
|
+
# @param [String] machine_detection Whether to detect if a human, answering
|
173
|
+
# machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`.
|
174
|
+
# Use `Enable` if you would like us to return `AnsweredBy` as soon as the called
|
175
|
+
# party is identified. Use `DetectMessageEnd`, if you would like to leave a
|
176
|
+
# message on an answering machine. If `send_digits` is provided, this parameter is
|
177
|
+
# ignored. For more information, see {Answering Machine
|
178
|
+
# Detection}[https://www.twilio.com/docs/voice/answering-machine-detection].
|
179
|
+
# @param [String] machine_detection_timeout The number of seconds that we should
|
180
|
+
# attempt to detect an answering machine before timing out and sending a voice
|
181
|
+
# request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds.
|
182
|
+
# @param [String] machine_detection_speech_threshold The number of milliseconds
|
183
|
+
# that is used as the measuring stick for the length of the speech activity, where
|
184
|
+
# durations lower than this value will be interpreted as a human and longer than
|
185
|
+
# this value as a machine. Possible Values: 1000-6000. Default: 2400.
|
186
|
+
# @param [String] machine_detection_speech_end_threshold The number of
|
187
|
+
# milliseconds of silence after speech activity at which point the speech activity
|
188
|
+
# is considered complete. Possible Values: 500-5000. Default: 1200.
|
189
|
+
# @param [String] machine_detection_silence_timeout The number of milliseconds of
|
190
|
+
# initial silence after which an `unknown` AnsweredBy result will be returned.
|
191
|
+
# Possible Values: 2000-10000. Default: 5000.
|
192
|
+
# @param [String] amd_status_callback The URL that we should call using the
|
193
|
+
# `amd_status_callback_method` to notify customer application whether the call was
|
194
|
+
# answered by human, machine or fax.
|
195
|
+
# @param [String] amd_status_callback_method The HTTP method we should use when
|
196
|
+
# calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default
|
197
|
+
# is `POST`.
|
172
198
|
# @return [ParticipantInstance] Created ParticipantInstance
|
173
|
-
def create(from: nil, to: nil, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, label: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_record: :unset, conference_trim: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, region: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, recording_status_callback_event: :unset, conference_recording_status_callback_event: :unset, coaching: :unset, call_sid_to_coach: :unset, jitter_buffer_size: :unset, byoc: :unset, caller_id: :unset, call_reason: :unset, recording_track: :unset, time_limit: :unset)
|
199
|
+
def create(from: nil, to: nil, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, label: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_record: :unset, conference_trim: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, region: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, recording_status_callback_event: :unset, conference_recording_status_callback_event: :unset, coaching: :unset, call_sid_to_coach: :unset, jitter_buffer_size: :unset, byoc: :unset, caller_id: :unset, call_reason: :unset, recording_track: :unset, time_limit: :unset, machine_detection: :unset, machine_detection_timeout: :unset, 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)
|
174
200
|
data = Twilio::Values.of({
|
175
201
|
'From' => from,
|
176
202
|
'To' => to,
|
@@ -211,6 +237,13 @@ module Twilio
|
|
211
237
|
'CallReason' => call_reason,
|
212
238
|
'RecordingTrack' => recording_track,
|
213
239
|
'TimeLimit' => time_limit,
|
240
|
+
'MachineDetection' => machine_detection,
|
241
|
+
'MachineDetectionTimeout' => machine_detection_timeout,
|
242
|
+
'MachineDetectionSpeechThreshold' => machine_detection_speech_threshold,
|
243
|
+
'MachineDetectionSpeechEndThreshold' => machine_detection_speech_end_threshold,
|
244
|
+
'MachineDetectionSilenceTimeout' => machine_detection_silence_timeout,
|
245
|
+
'AmdStatusCallback' => amd_status_callback,
|
246
|
+
'AmdStatusCallbackMethod' => amd_status_callback_method,
|
214
247
|
})
|
215
248
|
|
216
249
|
payload = @version.create('POST', @uri, data: data)
|
@@ -1571,9 +1571,16 @@ module Twilio
|
|
1571
1571
|
# status_callback:: Status callback URL
|
1572
1572
|
# status_callback_method:: Status callback URL method
|
1573
1573
|
# byoc:: BYOC trunk SID (Beta)
|
1574
|
+
# machine_detection:: Enable machine detection or end of greeting detection
|
1575
|
+
# amd_status_callback_method:: HTTP Method to use with amd_status_callback
|
1576
|
+
# amd_status_callback:: The URL we should call to send amd status information to your application
|
1577
|
+
# machine_detection_timeout:: Number of seconds to wait for machine detection
|
1578
|
+
# machine_detection_speech_threshold:: Number of milliseconds for measuring stick for the length of the speech activity
|
1579
|
+
# machine_detection_speech_end_threshold:: Number of milliseconds of silence after speech activity
|
1580
|
+
# machine_detection_silence_timeout:: Number of milliseconds of initial silence
|
1574
1581
|
# keyword_args:: additional attributes
|
1575
|
-
def number(phone_number, send_digits: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, byoc: nil, **keyword_args)
|
1576
|
-
append(Number.new(phone_number, send_digits: send_digits, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, byoc: byoc, **keyword_args))
|
1582
|
+
def number(phone_number, send_digits: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, byoc: nil, machine_detection: nil, amd_status_callback_method: nil, amd_status_callback: nil, machine_detection_timeout: nil, machine_detection_speech_threshold: nil, machine_detection_speech_end_threshold: nil, machine_detection_silence_timeout: nil, **keyword_args)
|
1583
|
+
append(Number.new(phone_number, send_digits: send_digits, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, byoc: byoc, machine_detection: machine_detection, amd_status_callback_method: amd_status_callback_method, amd_status_callback: amd_status_callback, machine_detection_timeout: machine_detection_timeout, machine_detection_speech_threshold: machine_detection_speech_threshold, machine_detection_speech_end_threshold: machine_detection_speech_end_threshold, machine_detection_silence_timeout: machine_detection_silence_timeout, **keyword_args))
|
1577
1584
|
end
|
1578
1585
|
|
1579
1586
|
##
|
@@ -1606,9 +1613,16 @@ module Twilio
|
|
1606
1613
|
# status_callback_event:: Status callback events
|
1607
1614
|
# status_callback:: Status callback URL
|
1608
1615
|
# status_callback_method:: Status callback URL method
|
1609
|
-
#
|
1610
|
-
|
1611
|
-
|
1616
|
+
# machine_detection:: Enable machine detection or end of greeting detection
|
1617
|
+
# amd_status_callback_method:: HTTP Method to use with amd_status_callback
|
1618
|
+
# amd_status_callback:: The URL we should call to send amd status information to your application
|
1619
|
+
# machine_detection_timeout:: Number of seconds to wait for machine detection
|
1620
|
+
# machine_detection_speech_threshold:: Number of milliseconds for measuring stick for the length of the speech activity
|
1621
|
+
# machine_detection_speech_end_threshold:: Number of milliseconds of silence after speech activity
|
1622
|
+
# machine_detection_silence_timeout:: Number of milliseconds of initial silence
|
1623
|
+
# keyword_args:: additional attributes
|
1624
|
+
def sip(sip_url, username: nil, password: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, machine_detection: nil, amd_status_callback_method: nil, amd_status_callback: nil, machine_detection_timeout: nil, machine_detection_speech_threshold: nil, machine_detection_speech_end_threshold: nil, machine_detection_silence_timeout: nil, **keyword_args)
|
1625
|
+
append(Sip.new(sip_url, username: username, password: password, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, machine_detection: machine_detection, amd_status_callback_method: amd_status_callback_method, amd_status_callback: amd_status_callback, machine_detection_timeout: machine_detection_timeout, machine_detection_speech_threshold: machine_detection_speech_threshold, machine_detection_speech_end_threshold: machine_detection_speech_end_threshold, machine_detection_silence_timeout: machine_detection_silence_timeout, **keyword_args))
|
1612
1626
|
end
|
1613
1627
|
end
|
1614
1628
|
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.72.
|
4
|
+
version: 5.72.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|