Class SIP::Sipper
In: sipper/sipper.rb
Parent: Object

Methods

Included Modules

SipLogger

Attributes

running  [R] 

Public Class methods

Public Instance methods

Load a controller at runtime whose definition is given in the string. eg.

    str = <<-EOF
    require 'base_controller'
    module MyControllers
      class SimpleController < SIP::BaseController
        def start
          r = Request.create_initial("message", "sip:nasir@codepresso.com")
          u = create_udp_session("127.0.0.1", 5066)
          u.send(r)
        end
      end
    end
    EOF
    load_controller( str )

You would typically do this from within a test case or simple cases where you do not need to define a controller in a specified controller location.

todo have a nice stopping, graceful using shutdown hook

[Validate]