Class: Twilio::TwiML::Sip
- Defined in:
- lib/twilio-ruby/twiml/voice_response.rb
Overview
<Sip> TwiML Noun
Instance Attribute Summary
Attributes inherited from TwiML
Instance Method Summary collapse
-
#headers(**keyword_args) {|headers| ... } ⇒ Object
- Create a new <Headers> element keyword_args
-
additional attributes.
-
#initialize(sip_url: nil, **keyword_args) {|_self| ... } ⇒ Sip
constructor
A new instance of Sip.
-
#uri(sip_url: nil, priority: nil, weight: nil, username: nil, password: nil, **keyword_args) ⇒ Object
- Create a new <Uri> element sip_url
- The SIP URI priority
- The priority of this SIP URI weight
- The weight of this SIP URI username
- The username for authentication password
- The password for authentication keyword_args
-
additional attributes.
Methods inherited from TwiML
#add_child, #add_text, #append, #comment, to_lower_camel_case, #to_s, #xml
Constructor Details
#initialize(sip_url: nil, **keyword_args) {|_self| ... } ⇒ Sip
Returns a new instance of Sip.
1859 1860 1861 1862 1863 1864 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1859 def initialize(sip_url: nil, **keyword_args) super(**keyword_args) @name = 'Sip' @value = sip_url unless sip_url.nil? yield(self) if block_given? end |
Instance Method Details
#headers(**keyword_args) {|headers| ... } ⇒ Object
Create a new <Headers> element
- keyword_args
-
additional attributes
1881 1882 1883 1884 1885 1886 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1881 def headers(**keyword_args) headers = Headers.new(**keyword_args) yield(headers) if block_given? append(headers) end |
#uri(sip_url: nil, priority: nil, weight: nil, username: nil, password: nil, **keyword_args) ⇒ Object
Create a new <Uri> element
- sip_url
-
The SIP URI
- priority
-
The priority of this SIP URI
- weight
-
The weight of this SIP URI
- username
-
The username for authentication
- password
-
The password for authentication
- keyword_args
-
additional attributes
1874 1875 1876 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1874 def uri(sip_url: nil, priority: nil, weight: nil, username: nil, password: nil, **keyword_args) append(SipUri.new(sip_url: sip_url, priority: priority, weight: weight, username: username, password: password, **keyword_args)) end |