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, 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}>"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



44
45
46
# File 'lib/oversip.rb', line 44

def configuration
  @configuration
end

.daemonizedObject

Returns the value of attribute daemonized.



44
45
46
# File 'lib/oversip.rb', line 44

def daemonized
  @daemonized
end

.is_readyObject

Returns the value of attribute is_ready.



44
45
46
# File 'lib/oversip.rb', line 44

def is_ready
  @is_ready
end

.master_nameObject

Returns the value of attribute master_name.



44
45
46
# File 'lib/oversip.rb', line 44

def master_name
  @master_name
end

.master_pidObject

Returns the value of attribute master_pid.



44
45
46
# File 'lib/oversip.rb', line 44

def master_pid
  @master_pid
end

.pid_fileObject

Returns the value of attribute pid_file.



44
45
46
# File 'lib/oversip.rb', line 44

def pid_file
  @pid_file
end

.proxiesObject

Returns the value of attribute proxies.



44
45
46
# File 'lib/oversip.rb', line 44

def proxies
  @proxies
end

.statusObject

Returns the value of attribute status.



44
45
46
# File 'lib/oversip.rb', line 44

def status
  @status
end

.stud_pidsObject

Returns the value of attribute stud_pids.



44
45
46
# File 'lib/oversip.rb', line 44

def stud_pids
  @stud_pids
end

.syslogger_mq_nameObject

Returns the value of attribute syslogger_mq_name.



44
45
46
# File 'lib/oversip.rb', line 44

def syslogger_mq_name
  @syslogger_mq_name
end

.syslogger_pidObject

Returns the value of attribute syslogger_pid.



44
45
46
# File 'lib/oversip.rb', line 44

def syslogger_pid
  @syslogger_pid
end

.tls_private_certObject

Returns the value of attribute tls_private_cert.



44
45
46
# File 'lib/oversip.rb', line 44

def tls_private_cert
  @tls_private_cert
end

.tls_public_certObject

Returns the value of attribute tls_public_cert.



44
45
46
# File 'lib/oversip.rb', line 44

def tls_public_cert
  @tls_public_cert
end

Class Method Details

.daemonized?Boolean

Returns:

  • (Boolean)


57
58
59
# File 'lib/oversip.rb', line 57

def daemonized?
  @daemonized
end

.master?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/oversip.rb', line 53

def master?
  @master_pid == $$
end

.syslogger_ready?Boolean

Returns:

  • (Boolean)


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

def syslogger_ready?
  @syslogger_pid and true
end