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/version.rb,
lib/oversip/posix_mq.rb,
lib/oversip/proxies_config.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, GemVersion, Launcher, Logger, ProxiesConfig, SIP, Stun, SysLoggerProcess, TLS, Utils, Version, WebSocket Classes: ConfigurationError, Error, FiberPool, LogicError, PosixMQ

Constant Summary collapse

PROGRAM_NAME =
"OverSIP"
PROGRAM_NAME_LOW =
PROGRAM_NAME.downcase
PROGRAM_DESC =
"OverSIP Server"
VERSION =
[Version::MAJOR, Version::MINOR, Version::TINY].join('.')
AUTHOR =
"IƱaki Baz Castillo"
AUTHOR_EMAIL =
"[email protected]"
DESCRIPTION =
"#{PROGRAM_NAME} #{VERSION}\n2012, #{AUTHOR} <#{AUTHOR_EMAIL}>"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



36
37
38
# File 'lib/oversip.rb', line 36

def configuration
  @configuration
end

.daemonizedObject

Returns the value of attribute daemonized.



36
37
38
# File 'lib/oversip.rb', line 36

def daemonized
  @daemonized
end

.master_nameObject

Returns the value of attribute master_name.



36
37
38
# File 'lib/oversip.rb', line 36

def master_name
  @master_name
end

.master_pidObject

Returns the value of attribute master_pid.



36
37
38
# File 'lib/oversip.rb', line 36

def master_pid
  @master_pid
end

.pid_fileObject

Returns the value of attribute pid_file.



36
37
38
# File 'lib/oversip.rb', line 36

def pid_file
  @pid_file
end

.proxiesObject

Returns the value of attribute proxies.



36
37
38
# File 'lib/oversip.rb', line 36

def proxies
  @proxies
end

.stud_pidsObject

Returns the value of attribute stud_pids.



36
37
38
# File 'lib/oversip.rb', line 36

def stud_pids
  @stud_pids
end

.syslogger_mq_nameObject

Returns the value of attribute syslogger_mq_name.



36
37
38
# File 'lib/oversip.rb', line 36

def syslogger_mq_name
  @syslogger_mq_name
end

.syslogger_pidObject

Returns the value of attribute syslogger_pid.



36
37
38
# File 'lib/oversip.rb', line 36

def syslogger_pid
  @syslogger_pid
end

.tlsObject

Returns the value of attribute tls.



36
37
38
# File 'lib/oversip.rb', line 36

def tls
  @tls
end

.tls_private_certObject

Returns the value of attribute tls_private_cert.



36
37
38
# File 'lib/oversip.rb', line 36

def tls_private_cert
  @tls_private_cert
end

.tls_proxy_ipv4Object

Returns the value of attribute tls_proxy_ipv4.



36
37
38
# File 'lib/oversip.rb', line 36

def tls_proxy_ipv4
  @tls_proxy_ipv4
end

.tls_proxy_ipv6Object

Returns the value of attribute tls_proxy_ipv6.



36
37
38
# File 'lib/oversip.rb', line 36

def tls_proxy_ipv6
  @tls_proxy_ipv6
end

.tls_public_certObject

Returns the value of attribute tls_public_cert.



36
37
38
# File 'lib/oversip.rb', line 36

def tls_public_cert
  @tls_public_cert
end

Class Method Details

.daemonized?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/oversip.rb', line 47

def daemonized?
  @daemonized
end

.master?Boolean

Returns:

  • (Boolean)


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

def master?
  @master_pid == $$
end

.syslogger_ready?Boolean

Returns:

  • (Boolean)


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

def syslogger_ready?
  @syslogger_pid and true
end