SIP Witch 1.9.15
|
A more generic service class for use by plugins. More...
#include <modules.h>
Public Member Functions | |
virtual srv::address * | resolve (const char *uri, struct addrinfo *hints) |
New srv resolver plugin. More... | |
voip::context_t | getContext (const char *uri) |
Static Public Member Functions | |
static void | bind (unsigned short port) |
static void | bind (const char *addr) |
static void | setPublic (void) |
Static Public Attributes | |
static voip::context_t | out_context = NULL |
static voip::context_t | tcp_context = NULL |
static voip::context_t | udp_context = NULL |
static voip::context_t | tls_context = NULL |
Protected Member Functions | |
generic () | |
Construct a generic service instance. More... | |
bool | is_active (void) const |
virtual void | cdrlog (cdr *call) |
virtual void | errlog (shell::loglevel_t level, const char *text) |
virtual bool | check (void) |
virtual void | snapshot (FILE *fp) |
virtual void | start (service *cfg) |
virtual void | stop (service *cfg) |
virtual void | reload (service *cfg) |
virtual void | publish (service *cfg) |
Static Protected Member Functions | |
static void * | alloc (service *cfgp, size_t size) |
static char * | dup (service *cfgp, const char *s) |
static bool | is_configured (void) |
Protected Attributes | |
unsigned | runlevel |
bool | active_flag |
Static Protected Attributes | |
static LinkedObject * | runlevels [4] = {NULL, NULL, NULL, NULL} |
static unsigned | count = 0 |
static unsigned short | sip_port = 5060 |
static const char * | sip_iface = NULL |
static volatile char * | sip_contact = NULL |
static volatile char * | sip_publish = NULL |
static int | sip_protocol = IPPROTO_UDP |
static int | sip_family = AF_INET |
static int | sip_tlsmode = 0 |
static bool | sip_public = false |
static const char * | sip_domain = NULL |
static const char * | sip_realm = "unknown" |
static const char * | sip_tlspwd = "" |
static const char * | sip_tlsdev = "/dev/random" |
static const char * | sip_tlsca = "/etc/ssl/ca.pem" |
static const char * | sip_tlsdh = "/etc/ssl/dh1024.pem" |
static const char * | sip_tlskey = "/etc/ssl/private/sipwitch.key" |
static const char * | sip_tlscert = "/etc/ssl/sipwitch.pem" |
static unsigned | sip_prefix = 0 |
static unsigned | sip_range = 0 |
static char | session_uuid [40] |
A more generic service class for use by plugins.
This is meant for plugins which do generic or unrelated operations, or to activate a generic service thread. This adds the inherited class to the existing service start/stop framework in sipwitch.
|
protected |
Construct a generic service instance.
Definition at line 35 of file modules.cpp.
|
inlinestaticprotectedinherited |
|
inlinestaticinherited |
|
staticinherited |
Definition at line 215 of file service.cpp.
|
protectedvirtualinherited |
Definition at line 195 of file service.cpp.
|
protectedvirtualinherited |
Reimplemented in sipwitch::messages, sipwitch::stack, and sipwitch::registry.
Definition at line 186 of file service.cpp.
|
inlinestaticprotectedinherited |
|
protectedvirtualinherited |
Definition at line 191 of file service.cpp.
|
inherited |
Definition at line 162 of file service.cpp.
|
inlineprotectedinherited |
|
inlinestaticprotectedinherited |
|
protectedvirtualinherited |
Definition at line 203 of file service.cpp.
|
protectedvirtualinherited |
Reimplemented in sipwitch::media, sipwitch::messages, sipwitch::stack, sipwitch::registry, sipwitch::forward, and sipwitch::scripting.
Definition at line 199 of file service.cpp.
|
virtual |
New srv resolver plugin.
host | uri to resolve. |
hints | for resolver |
Definition at line 40 of file modules.cpp.
|
inlinestaticinherited |
|
protectedvirtualinherited |
Reimplemented in sipwitch::messages, sipwitch::stack, and sipwitch::registry.
Definition at line 182 of file service.cpp.
|
protectedvirtualinherited |
Reimplemented in sipwitch::media, sipwitch::stack, sipwitch::registry, sipwitch::forward, and sipwitch::scripting.
Definition at line 207 of file service.cpp.
|
protectedvirtualinherited |
Reimplemented in sipwitch::media, sipwitch::stack, and sipwitch::registry.
Definition at line 211 of file service.cpp.
|
protectedinherited |
|
staticinherited |
|
protectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |