bandwidth-sdk 9.2.0 → 9.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 714d17e79fcabfbf641b2953be3d87f4661957c4ce6452a9add5fba71f7e06fc
|
4
|
+
data.tar.gz: 910e102f0b21b52e4ab8cacb474595a95960f8d5db93689c41261d775175bc86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bd7b9cb0599cbe42a6f414b2ba26b5b3aa3267f8b27be6748e6f50e0f53e0eb382860abcbedf3330e0aaf6c5c4994ee08986c5df2b898a021c84e8d7f7407a6
|
7
|
+
data.tar.gz: 875c6add47513bdd45c8db63c614f5ea58c030370a1c5265840eb0a8a1c652487ff0d0752d853fbdf2a2f3fb644b6afa87e4ecc98f8b70a168aca8f9321a2799
|
@@ -86,6 +86,11 @@ module Bandwidth
|
|
86
86
|
# @return [String]
|
87
87
|
attr_accessor :fallback_password
|
88
88
|
|
89
|
+
# When an answering machine is detected, the amount of silence (in seconds)
|
90
|
+
# before assuming the message has finished playing.
|
91
|
+
# return [Float]
|
92
|
+
attr_accessor :machine_speech_end_threshold
|
93
|
+
|
89
94
|
# A mapping from model property names to API property names.
|
90
95
|
def self.names
|
91
96
|
@_hash = {} if @_hash.nil?
|
@@ -103,6 +108,7 @@ module Bandwidth
|
|
103
108
|
@_hash['password'] = 'password'
|
104
109
|
@_hash['fallback_username'] = 'fallbackUsername'
|
105
110
|
@_hash['fallback_password'] = 'fallbackPassword'
|
111
|
+
@_hash['machine_speech_end_threshold'] = 'machineSpeechEndThreshold'
|
106
112
|
@_hash
|
107
113
|
end
|
108
114
|
|
@@ -123,6 +129,7 @@ module Bandwidth
|
|
123
129
|
password
|
124
130
|
fallback_username
|
125
131
|
fallback_password
|
132
|
+
machine_speech_end_threshold
|
126
133
|
]
|
127
134
|
end
|
128
135
|
|
@@ -137,6 +144,7 @@ module Bandwidth
|
|
137
144
|
password
|
138
145
|
fallback_username
|
139
146
|
fallback_password
|
147
|
+
machine_speech_end_threshold
|
140
148
|
]
|
141
149
|
end
|
142
150
|
|
@@ -153,7 +161,8 @@ module Bandwidth
|
|
153
161
|
username = nil,
|
154
162
|
password = nil,
|
155
163
|
fallback_username = nil,
|
156
|
-
fallback_password = nil
|
164
|
+
fallback_password = nil,
|
165
|
+
machine_speech_end_threshold = nil)
|
157
166
|
@mode = mode unless mode == SKIP
|
158
167
|
@detection_timeout = detection_timeout unless detection_timeout == SKIP
|
159
168
|
@silence_timeout = silence_timeout unless silence_timeout == SKIP
|
@@ -168,6 +177,7 @@ module Bandwidth
|
|
168
177
|
@password = password unless password == SKIP
|
169
178
|
@fallback_username = fallback_username unless fallback_username == SKIP
|
170
179
|
@fallback_password = fallback_password unless fallback_password == SKIP
|
180
|
+
@machine_speech_end_threshold = machine_speech_end_threshold unless machine_speech_end_threshold == SKIP
|
171
181
|
end
|
172
182
|
|
173
183
|
# Creates an instance of the object from a hash.
|
@@ -197,6 +207,8 @@ module Bandwidth
|
|
197
207
|
hash.key?('fallbackUsername') ? hash['fallbackUsername'] : SKIP
|
198
208
|
fallback_password =
|
199
209
|
hash.key?('fallbackPassword') ? hash['fallbackPassword'] : SKIP
|
210
|
+
machine_speech_end_threshold =
|
211
|
+
hash.key?('machineSpeechEndThreshold') ? hash['machineSpeechEndThreshold'] : SKIP
|
200
212
|
|
201
213
|
# Create object from extracted values.
|
202
214
|
MachineDetectionConfiguration.new(mode,
|
@@ -212,7 +224,8 @@ module Bandwidth
|
|
212
224
|
username,
|
213
225
|
password,
|
214
226
|
fallback_username,
|
215
|
-
fallback_password
|
227
|
+
fallback_password,
|
228
|
+
machine_speech_end_threshold)
|
216
229
|
end
|
217
230
|
end
|
218
231
|
end
|
@@ -128,6 +128,7 @@ class IntegrationTest < Test::Unit::TestCase
|
|
128
128
|
machine_detection.delay_result = true
|
129
129
|
machine_detection.callback_url = BASE_CALLBACK_URL + '/machineDetection'
|
130
130
|
machine_detection.callback_method = 'POST'
|
131
|
+
machine_detection.machine_speech_end_threshold = 3.2
|
131
132
|
|
132
133
|
body = CreateCallRequest.new
|
133
134
|
body.from = BW_NUMBER
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bandwidth-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bandwidth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logging
|