Skip to content

Commit

Permalink
Merge pull request #6 from Bandwidth/DX-1671-1675
Browse files Browse the repository at this point in the history
DX-1671-1675 added sip uri and tag bxml
  • Loading branch information
jmulford-bw authored Dec 10, 2020
2 parents 85f3c89 + 1dbf775 commit 8e93b9a
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 1 deletion.
Binary file removed bandwidth-sdk-3.12.1.gem
Binary file not shown.
2 changes: 1 addition & 1 deletion bandwidth.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'bandwidth-sdk'
s.version = '3.12.1'
s.version = '3.13.0'
s.summary = 'bandwidth'
s.description = 'Bandwidth\'s set of APIs'
s.authors = ['APIMatic SDK Generator']
Expand Down
25 changes: 25 additions & 0 deletions lib/bandwidth/voice_lib/bxml/verbs/sip_uri.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
require_relative 'xml_verb'

module Bandwidth
module Voice
class SipUri
include XmlVerb
def to_bxml(xml)
xml.SipUri(uri, compact_hash({
'transferAnswerUrl' => transfer_answer_url,
'transferAnswerMethod' => transfer_answer_method,
'transferDisconnectUrl' => transfer_disconnect_url,
'transferDisconnectMethod' => transfer_disconnect_method,
'username' => username,
'password' => password,
'tag' => tag,
'uui' => uui,
'transferAnswerFallbackUrl' => transfer_answer_fallback_url,
'transferAnswerFallbackMethod' => transfer_answer_fallback_method,
'fallbackUsername' => fallback_username,
'fallbackPassword' => fallback_password
}))
end
end
end
end
13 changes: 13 additions & 0 deletions lib/bandwidth/voice_lib/bxml/verbs/tag.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require_relative 'xml_verb'

module Bandwidth
module Voice
class Tag
include XmlVerb

def to_bxml(xml)
xml.Tag(tag)
end
end
end
end
3 changes: 3 additions & 0 deletions lib/bandwidth/voice_lib/bxml/verbs/transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def embedded_xml(xml, property, type)
phone_numbers.each do |number|
embedded_xml(xml, number, PhoneNumber)
end
sip_uris.each do |sip_uri|
embedded_xml(xml, sip_uri, SipUri)
end
end
end
end
Expand Down

0 comments on commit 8e93b9a

Please sign in to comment.