bandwidth-sdk 3.10.0 → 3.11.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3d2881e1496cedc05c46f0cfd26e3d3d5f962ed99a44b058716601e604b9fdf
4
- data.tar.gz: ee7642af1962da2ed997831b55dde24a8e6568403d47affd12df2200aae2a477
3
+ metadata.gz: 9ee38371ece860ee70a08149297e79e58a0ca72a093168951ca8256c6a83e45c
4
+ data.tar.gz: dc0ab4ad91c207356b662728a700079f2c1aeb965f8b34681463c5c28a4a649d
5
5
  SHA512:
6
- metadata.gz: d8fb09237fb2de6e11a8714b7944dd46a8fbae1ca80c93eb5e596a039012a3755b850075ffb84c4e2bb55e914b08d71852ffdb307daba184d53ade4ac976b37b
7
- data.tar.gz: 44c19dfccfbc76061c5977ac581ae041db2ddd62ddccfff99235e52d9e04134f4035ed934261656e1b11270d006d707f43d8377e429e169ff019b362ba480b1c
6
+ metadata.gz: e5823198c1684b55e3505e8439615cef32b6d71745795ad215710760ff58638a3b34db6afaa31a20d495d2a33e620689e8d3644813831f1cb7ad47376513ac07
7
+ data.tar.gz: 8d4f8f124305b63102cfdb1908897ac521f14f4fcc133562f402dc28f4c9a69eb613765a6e5eb610a3ce0aaf49bcff078c575a2986cb065df750c4b429ab6536
@@ -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
- # Controllers
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'
@@ -13,7 +13,7 @@ module Bandwidth
13
13
  @http_call_back = http_call_back
14
14
 
15
15
  @global_headers = {
16
- 'user-agent' => 'ruby-sdk-refs/tags/ruby3.10.0'
16
+ 'user-agent' => 'ruby-sdk-refs/tags/ruby3.11.0'
17
17
  }
18
18
  end
19
19
 
@@ -13,7 +13,7 @@ module Bandwidth
13
13
  @http_call_back = http_call_back
14
14
 
15
15
  @global_headers = {
16
- 'user-agent' => 'ruby-sdk-refs/tags/ruby3.10.0'
16
+ 'user-agent' => 'ruby-sdk-refs/tags/ruby3.11.0'
17
17
  }
18
18
  end
19
19
 
@@ -13,7 +13,7 @@ module Bandwidth
13
13
  @http_call_back = http_call_back
14
14
 
15
15
  @global_headers = {
16
- 'user-agent' => 'ruby-sdk-refs/tags/ruby3.10.0'
16
+ 'user-agent' => 'ruby-sdk-refs/tags/ruby3.11.0'
17
17
  }
18
18
  end
19
19
 
@@ -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
@@ -13,7 +13,7 @@ module Bandwidth
13
13
  @http_call_back = http_call_back
14
14
 
15
15
  @global_headers = {
16
- 'user-agent' => 'ruby-sdk-refs/tags/ruby3.10.0'
16
+ 'user-agent' => 'ruby-sdk-refs/tags/ruby3.11.0'
17
17
  }
18
18
  end
19
19
 
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.10.0
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-08-19 00:00:00.000000000 Z
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