Class: OverSIP::SIP::ServerTransaction

Inherits:
Object
  • Object
show all
Includes:
Logger
Defined in:
lib/oversip/sip/server_transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#coreObject

Returns the value of attribute core.



8
9
10
# File 'lib/oversip/sip/server_transaction.rb', line 8

def core
  @core
end

#last_responseObject

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

#requestObject (readonly)

Returns the value of attribute request.



7
8
9
# File 'lib/oversip/sip/server_transaction.rb', line 7

def request
  @request
end

#stateObject (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_responseObject



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