Class: OverSIP::SIP::Ack2xxForwarder

Inherits:
ClientTransaction show all
Defined in:
lib/oversip/sip/client_transaction.rb

Instance Attribute Summary

Attributes inherited from ClientTransaction

#connection, #core, #request, #state

Instance Method Summary collapse

Methods inherited from ClientTransaction

get_class

Methods included from Logger

fg_system_msg2str, load_methods, #log_id

Constructor Details

#initialize(core, request, transaction_conf, transport, ip = nil, ip_type = nil, port = nil) ⇒ Ack2xxForwarder

Returns a new instance of Ack2xxForwarder.



561
562
563
564
# File 'lib/oversip/sip/client_transaction.rb', line 561

def initialize core, request, transaction_conf, transport, ip=nil, ip_type=nil, port=nil
  super
  @log_id = "ICT #{@transaction_id}"
end

Instance Method Details

#connection_failedObject



572
573
574
# File 'lib/oversip/sip/client_transaction.rb', line 572

def connection_failed
  # Do nothing.
end

#send_requestObject



566
567
568
569
570
# File 'lib/oversip/sip/client_transaction.rb', line 566

def send_request
  @request.insert_header "Via", "#{@server_klass.via_core};branch=z9hG4bK#{@transaction_id}"

  @connection.send_sip_msg @request.to_s, @ip, @port
end

#tls_validation_failedObject



576
577
578
# File 'lib/oversip/sip/client_transaction.rb', line 576

def tls_validation_failed
  # Do nothing.
end