Module: OverSIP

Defined in:
lib/oversip/fiber_pool.rb,
lib/oversip.rb,
lib/oversip/tls.rb,
lib/oversip/utils.rb,
lib/oversip/config.rb,
lib/oversip/errors.rb,
lib/oversip/logger.rb,
lib/oversip/syslog.rb,
lib/oversip/version.rb,
lib/oversip/posix_mq.rb,
lib/oversip/default_server.rb,
lib/oversip/proxies_config.rb,
lib/oversip/system_callbacks.rb,
lib/oversip/config_validators.rb,
lib/oversip/syslogger_process.rb,
ext/stun/stun_ruby.c,
ext/utils/utils_ruby.c,
ext/sip_parser/sip_parser_ruby.c,
ext/websocket_http_parser/ws_http_parser_ruby.c,
ext/websocket_framing_utils/ws_framing_utils_ruby.c

Overview

NOTE: Extracted from github.com/schmurfy/fiber_pool.

Defined Under Namespace

Modules: Config, Launcher, Logger, Modules, ProxiesConfig, SIP, SipEvents, Stun, SysLoggerProcess, Syslog, SystemCallbacks, SystemEvents, TLS, Utils, Version, WebSocket, WebSocketEvents Classes: ConfigurationError, Error, FiberPool, ParsingError, PosixMQ, RuntimeError

Constant Summary collapse

M =

Allow OverSIP::M::MODULE_NAME usage.

Modules
PROGRAM_NAME =
"OverSIP"
VERSION =
[Version::MAJOR, Version::MINOR, Version::TINY].join(".")
AUTHOR =
"Inaki Baz Castillo"
AUTHOR_EMAIL =
"[email protected]"
HOMEPAGE =
"http://www.oversip.net"
DESCRIPTION =
"#{PROGRAM_NAME} #{VERSION}\n#{HOMEPAGE}\n#{year}, #{AUTHOR} <#{AUTHOR_EMAIL}>\nSoftware by Versatica: http://www.versatica.com"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



51
52
53
# File 'lib/oversip.rb', line 51

def configuration
  @configuration
end

.daemonizedObject

Returns the value of attribute daemonized.



51
52
53
# File 'lib/oversip.rb', line 51

def daemonized
  @daemonized
end

.is_readyObject

Returns the value of attribute is_ready.



51
52
53
# File 'lib/oversip.rb', line 51

def is_ready
  @is_ready
end

.master_nameObject

Returns the value of attribute master_name.



51
52
53
# File 'lib/oversip.rb', line 51

def master_name
  @master_name
end

.master_pidObject

Returns the value of attribute master_pid.



51
52
53
# File 'lib/oversip.rb', line 51

def master_pid
  @master_pid
end

.pid_fileObject

Returns the value of attribute pid_file.



51
52
53
# File 'lib/oversip.rb', line 51

def pid_file
  @pid_file
end

.proxiesObject

Returns the value of attribute proxies.



51
52
53
# File 'lib/oversip.rb', line 51

def proxies
  @proxies
end

.root_fiberObject

Returns the value of attribute root_fiber.



51
52
53
# File 'lib/oversip.rb', line 51

def root_fiber
  @root_fiber
end

.statusObject

Returns the value of attribute status.



51
52
53
# File 'lib/oversip.rb', line 51

def status
  @status
end

.stud_pidsObject

Returns the value of attribute stud_pids.



51
52
53
# File 'lib/oversip.rb', line 51

def stud_pids
  @stud_pids
end

.syslogger_mq_nameObject

Returns the value of attribute syslogger_mq_name.



51
52
53
# File 'lib/oversip.rb', line 51

def syslogger_mq_name
  @syslogger_mq_name
end

.syslogger_pidObject

Returns the value of attribute syslogger_pid.



51
52
53
# File 'lib/oversip.rb', line 51

def syslogger_pid
  @syslogger_pid
end

.tls_private_certObject

Returns the value of attribute tls_private_cert.



51
52
53
# File 'lib/oversip.rb', line 51

def tls_private_cert
  @tls_private_cert
end

.tls_public_certObject

Returns the value of attribute tls_public_cert.



51
52
53
# File 'lib/oversip.rb', line 51

def tls_public_cert
  @tls_public_cert
end

Class Method Details

.daemonized?Boolean

Returns:

  • (Boolean)


65
66
67
# File 'lib/oversip.rb', line 65

def daemonized?
  @daemonized
end

.master?Boolean

Returns:

  • (Boolean)


61
62
63
# File 'lib/oversip.rb', line 61

def master?
  @master_pid == $$
end

.syslogger_ready?Boolean

Returns:

  • (Boolean)


69
70
71
# File 'lib/oversip.rb', line 69

def syslogger_ready?
  @syslogger_pid and true
end