Skip to content

Commit c8f1609

Browse files
committed
Deploy
1 parent 4e6669c commit c8f1609

File tree

9 files changed

+40
-6
lines changed

9 files changed

+40
-6
lines changed

bandwidth-sdk-3.10.0.gem

-37.5 KB
Binary file not shown.

bandwidth-sdk-3.11.0.gem

38 KB
Binary file not shown.

bandwidth.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'bandwidth-sdk'
3-
s.version = '3.10.0'
3+
s.version = '3.11.0'
44
s.summary = 'bandwidth'
55
s.description = 'Bandwidth\'s set of APIs'
66
s.authors = ['APIMatic SDK Generator']

lib/bandwidth.rb

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,25 @@
4242
require_relative 'bandwidth/web_rtc_lib/web_rtc'
4343
require_relative 'bandwidth/http/auth/web_rtc_basic_auth.rb'
4444

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'

lib/bandwidth/messaging_lib/messaging/controllers/base_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def initialize(config, http_call_back: nil)
1313
@http_call_back = http_call_back
1414

1515
@global_headers = {
16-
'user-agent' => 'ruby-sdk-refs/tags/ruby3.10.0'
16+
'user-agent' => 'ruby-sdk-refs/tags/ruby3.11.0'
1717
}
1818
end
1919

lib/bandwidth/two_factor_auth_lib/two_factor_auth/controllers/base_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def initialize(config, http_call_back: nil)
1313
@http_call_back = http_call_back
1414

1515
@global_headers = {
16-
'user-agent' => 'ruby-sdk-refs/tags/ruby3.10.0'
16+
'user-agent' => 'ruby-sdk-refs/tags/ruby3.11.0'
1717
}
1818
end
1919

lib/bandwidth/voice_lib/voice/controllers/base_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def initialize(config, http_call_back: nil)
1313
@http_call_back = http_call_back
1414

1515
@global_headers = {
16-
'user-agent' => 'ruby-sdk-refs/tags/ruby3.10.0'
16+
'user-agent' => 'ruby-sdk-refs/tags/ruby3.11.0'
1717
}
1818
end
1919

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

lib/bandwidth/web_rtc_lib/web_rtc/controllers/base_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def initialize(config, http_call_back: nil)
1313
@http_call_back = http_call_back
1414

1515
@global_headers = {
16-
'user-agent' => 'ruby-sdk-refs/tags/ruby3.10.0'
16+
'user-agent' => 'ruby-sdk-refs/tags/ruby3.11.0'
1717
}
1818
end
1919

0 commit comments

Comments
 (0)