bandwidth-sdk 3.10.0 → 3.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bandwidth.rb +22 -1
- data/lib/bandwidth/messaging_lib/messaging/controllers/base_controller.rb +1 -1
- data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/controllers/base_controller.rb +1 -1
- data/lib/bandwidth/voice_lib/voice/controllers/base_controller.rb +1 -1
- data/lib/bandwidth/web_rtc_lib/utils/web_rtc_transfer.rb +13 -0
- data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/base_controller.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ee38371ece860ee70a08149297e79e58a0ca72a093168951ca8256c6a83e45c
|
4
|
+
data.tar.gz: dc0ab4ad91c207356b662728a700079f2c1aeb965f8b34681463c5c28a4a649d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5823198c1684b55e3505e8439615cef32b6d71745795ad215710760ff58638a3b34db6afaa31a20d495d2a33e620689e8d3644813831f1cb7ad47376513ac07
|
7
|
+
data.tar.gz: 8d4f8f124305b63102cfdb1908897ac521f14f4fcc133562f402dc28f4c9a69eb613765a6e5eb610a3ce0aaf49bcff078c575a2986cb065df750c4b429ab6536
|
data/lib/bandwidth.rb
CHANGED
@@ -42,4 +42,25 @@ require_relative 'bandwidth/http/auth/voice_basic_auth.rb'
|
|
42
42
|
require_relative 'bandwidth/web_rtc_lib/web_rtc'
|
43
43
|
require_relative 'bandwidth/http/auth/web_rtc_basic_auth.rb'
|
44
44
|
|
45
|
-
#
|
45
|
+
# External Files
|
46
|
+
require_relative 'bandwidth/voice_lib/bxml/bxml.rb'
|
47
|
+
require_relative 'bandwidth/web_rtc_lib/utils/web_rtc_transfer.rb'
|
48
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/bridge.rb'
|
49
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/conference.rb'
|
50
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/forward.rb'
|
51
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/gather.rb'
|
52
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/hangup.rb'
|
53
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/pause.rb'
|
54
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/pause_recording.rb'
|
55
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/phone_number.rb'
|
56
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/play_audio.rb'
|
57
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/record.rb'
|
58
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/redirect.rb'
|
59
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/resume_recording.rb'
|
60
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/ring.rb'
|
61
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/send_dtmf.rb'
|
62
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/speak_sentence.rb'
|
63
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/start_recording.rb'
|
64
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/stop_recording.rb'
|
65
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/transfer.rb'
|
66
|
+
require_relative 'bandwidth/voice_lib/bxml/verbs/xml_verb.rb'
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# web_rtc_transfer.rb
|
2
|
+
#
|
3
|
+
# Custom transfer BXML for WebRtc
|
4
|
+
#
|
5
|
+
# @copyright Bandwidth INC
|
6
|
+
|
7
|
+
module Bandwidth
|
8
|
+
module WebRtc
|
9
|
+
def generate_bxml(device_token, sip_uri="sip:sipx.webrtc.bandwidth.com:5060")
|
10
|
+
return '<?xml version="1.0" encoding="UTF-8"?><Transfer><SipUri uui="%s;encoding=jwt">%s</SipUri></Transfer>' % [device_token, sip_uri]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
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: 3.
|
4
|
+
version: 3.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- APIMatic SDK Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logging
|
@@ -208,6 +208,7 @@ files:
|
|
208
208
|
- lib/bandwidth/voice_lib/voice/models/transcript.rb
|
209
209
|
- lib/bandwidth/voice_lib/voice/models/transcription.rb
|
210
210
|
- lib/bandwidth/voice_lib/voice/models/transcription_response.rb
|
211
|
+
- lib/bandwidth/web_rtc_lib/utils/web_rtc_transfer.rb
|
211
212
|
- lib/bandwidth/web_rtc_lib/web_rtc.rb
|
212
213
|
- lib/bandwidth/web_rtc_lib/web_rtc/client.rb
|
213
214
|
- lib/bandwidth/web_rtc_lib/web_rtc/controllers/api_controller.rb
|