Skip to content

Commit 1dbf775

Browse files
committed
DX-1671-1675 added sip uri and tag bxml
1 parent 85f3c89 commit 1dbf775

File tree

5 files changed

+42
-1
lines changed

5 files changed

+42
-1
lines changed

bandwidth-sdk-3.12.1.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.12.1'
3+
s.version = '3.13.0'
44
s.summary = 'bandwidth'
55
s.description = 'Bandwidth\'s set of APIs'
66
s.authors = ['APIMatic SDK Generator']
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
require_relative 'xml_verb'
2+
3+
module Bandwidth
4+
module Voice
5+
class SipUri
6+
include XmlVerb
7+
def to_bxml(xml)
8+
xml.SipUri(uri, compact_hash({
9+
'transferAnswerUrl' => transfer_answer_url,
10+
'transferAnswerMethod' => transfer_answer_method,
11+
'transferDisconnectUrl' => transfer_disconnect_url,
12+
'transferDisconnectMethod' => transfer_disconnect_method,
13+
'username' => username,
14+
'password' => password,
15+
'tag' => tag,
16+
'uui' => uui,
17+
'transferAnswerFallbackUrl' => transfer_answer_fallback_url,
18+
'transferAnswerFallbackMethod' => transfer_answer_fallback_method,
19+
'fallbackUsername' => fallback_username,
20+
'fallbackPassword' => fallback_password
21+
}))
22+
end
23+
end
24+
end
25+
end
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require_relative 'xml_verb'
2+
3+
module Bandwidth
4+
module Voice
5+
class Tag
6+
include XmlVerb
7+
8+
def to_bxml(xml)
9+
xml.Tag(tag)
10+
end
11+
end
12+
end
13+
end

lib/bandwidth/voice_lib/bxml/verbs/transfer.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ def embedded_xml(xml, property, type)
3434
phone_numbers.each do |number|
3535
embedded_xml(xml, number, PhoneNumber)
3636
end
37+
sip_uris.each do |sip_uri|
38+
embedded_xml(xml, sip_uri, SipUri)
39+
end
3740
end
3841
end
3942
end

0 commit comments

Comments
 (0)