Class: OverSIP::SIP::ServerTransaction
- Inherits:
-
Object
- Object
- OverSIP::SIP::ServerTransaction
- Includes:
- Logger
- Defined in:
- lib/oversip/sip/server_transaction.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#core ⇒ Object
Returns the value of attribute core.
-
#last_response ⇒ Object
Returns the value of attribute last_response.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(request) ⇒ ServerTransaction
constructor
A new instance of ServerTransaction.
- #retransmit_last_response ⇒ Object
Methods included from Logger
fg_system_msg2str, load_methods, #log_id
Constructor Details
#initialize(request) ⇒ ServerTransaction
Returns a new instance of ServerTransaction.
11 12 13 14 15 |
# File 'lib/oversip/sip/server_transaction.rb', line 11 def initialize request @request = request @request.server_transaction = self @transaction_id = request.via_branch_id end |
Instance Attribute Details
#core ⇒ Object
Returns the value of attribute core.
8 9 10 |
# File 'lib/oversip/sip/server_transaction.rb', line 8 def core @core end |
#last_response ⇒ Object
Returns the value of attribute last_response.
8 9 10 |
# File 'lib/oversip/sip/server_transaction.rb', line 8 def last_response @last_response end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
7 8 9 |
# File 'lib/oversip/sip/server_transaction.rb', line 7 def request @request end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
9 10 11 |
# File 'lib/oversip/sip/server_transaction.rb', line 9 def state @state end |
Instance Method Details
#retransmit_last_response ⇒ Object
17 18 19 |
# File 'lib/oversip/sip/server_transaction.rb', line 17 def retransmit_last_response @request.send_response @last_response if @last_response end |