SIP Witch 1.9.15
Data Structures | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
sipwitch::registry Class Reference

#include <server.h>

Inheritance diagram for sipwitch::registry:
Inheritance graph
[legend]
Collaboration diagram for sipwitch::registry:
Collaboration graph
[legend]

Data Structures

class   mapped
 
class   pattern
 
class   pointer
 
class   route
 
class   target
 

Public Member Functions

  registry ()
 

Static Public Member Functions

static const char *  getRealm (void)
 
static const char *  getDigest (void)
 
static time_t  getExpires (void)
 
static unsigned  getPrefix (void)
 
static unsigned  getRange (void)
 
static unsigned  getRoutes (void)
 
static const char *  getDomain (void)
 
static void  incUse (mapped *rr, stats::stat_t stat)
 
static void  decUse (mapped *rr, stats::stat_t stat)
 
static unsigned  getEntries (void)
 
static unsigned  getIndex (mapped *rr)
 
static bool  isExtension (const char *id)
 
static bool  isUserid (const char *id)
 
static mappedaddress (const struct sockaddr *addr)
 
static mappedcontact (const char *uri)
 
static mappedcontact (const struct sockaddr *addr, const char *uid)
 
static mappedgetExtension (const char *id)
 
static mappedallocate (const char *id)
 
static mappedaccess (const char *id)
 
static mappedinvite (const char *id, stats::stat_t stat)
 
static mappeddialing (const char *id)
 
static bool  exists (const char *id)
 
static patterngetRouting (unsigned trs, const char *id)
 
static void  detach (mapped *m)
 
static bool  remove (const char *id)
 
static unsigned  cleanup (time_t period)
 

Private Member Functions

bool  check (void)
 
void  reload (service *cfg)
 
void  start (service *cfg)
 
void  stop (service *cfg)
 
void  snapshot (FILE *fp)
 
bool  is_active (void) const
 
virtual void  cdrlog (cdr *call)
 
virtual void  errlog (shell::loglevel_t level, const char *text)
 
virtual void  publish (service *cfg)
 
voip::context_t  getContext (const char *uri)
 

Static Private Member Functions

static void  clear (mapped *rr)
 
static void  expire (mapped *rr)
 
static mappedfind (const char *id)
 
static void *  alloc (service *cfgp, size_t size)
 
static char *  dup (service *cfgp, const char *s)
 
static bool  is_configured (void)
 
static void  bind (unsigned short port)
 
static void  bind (const char *addr)
 
static void  setPublic (void)
 

Private Attributes

volatile time_t  expires
 
char *volatile  digest
 
char *volatile  realm
 
unsigned  prefix
 
unsigned  range
 
unsigned  routes
 
unsigned  runlevel
 
bool  active_flag
 

Static Private Attributes

static registry  reg
 
static LinkedObjectrunlevels [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]
 
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
 

Detailed Description

Definition at line 64 of file server.h.

Constructor & Destructor Documentation

sipwitch::registry::registry ( )

Definition at line 106 of file registry.cpp.

Member Function Documentation

registry::mapped * sipwitch::registry::access ( const char *  id )
static

Definition at line 1081 of file registry.cpp.

registry::mapped * sipwitch::registry::address ( const struct sockaddr *  addr )
static

Definition at line 869 of file registry.cpp.

static void* sipwitch::service::callback::alloc ( servicecfgp,
size_t  size 
)
inlinestaticprotectedinherited

Definition at line 211 of file service.h.

registry::mapped * sipwitch::registry::allocate ( const char *  id )
static

Definition at line 678 of file registry.cpp.

static void sipwitch::service::callback::bind ( unsigned short  port )
inlinestaticinherited

Definition at line 238 of file service.h.

void callback::bind ( const char *  addr )
staticinherited

Definition at line 215 of file service.cpp.

void callback::cdrlog ( cdrcall )
protectedvirtualinherited

Definition at line 195 of file service.cpp.

bool sipwitch::registry::check ( void  )
privatevirtual

Reimplemented from sipwitch::service::callback.

Definition at line 232 of file registry.cpp.

unsigned sipwitch::registry::cleanup ( time_t  period )
static

Definition at line 452 of file registry.cpp.

void sipwitch::registry::clear ( mappedrr )
staticprivate

Definition at line 344 of file registry.cpp.

registry::mapped * sipwitch::registry::contact ( const char *  uri )
static

Definition at line 898 of file registry.cpp.

registry::mapped * sipwitch::registry::contact ( const struct sockaddr *  addr,
const char *  uid 
)
static

Definition at line 932 of file registry.cpp.

void sipwitch::registry::decUse ( mappedrr,
stats::stat_t  stat 
)
static

Definition at line 167 of file registry.cpp.

void sipwitch::registry::detach ( mappedm )
static

Definition at line 1100 of file registry.cpp.

registry::mapped * sipwitch::registry::dialing ( const char *  id )
static

Definition at line 1055 of file registry.cpp.

static char* sipwitch::service::callback::dup ( servicecfgp,
const char *  s 
)
inlinestaticprotectedinherited

Definition at line 214 of file service.h.

void callback::errlog ( shell::loglevel_t  level,
const char *  text 
)
protectedvirtualinherited

Definition at line 191 of file service.cpp.

bool sipwitch::registry::exists ( const char *  id )
static

Definition at line 1035 of file registry.cpp.

void sipwitch::registry::expire ( mappedrr )
staticprivate

Definition at line 388 of file registry.cpp.

registry::mapped * sipwitch::registry::find ( const char *  id )
staticprivate

Definition at line 195 of file registry.cpp.

voip::context_t callback::getContext ( const char *  uri )
inherited

Definition at line 162 of file service.cpp.

static const char* sipwitch::registry::getDigest ( void  )
inlinestatic

Definition at line 181 of file server.h.

const char * sipwitch::registry::getDomain ( void  )
static

Definition at line 115 of file registry.cpp.

unsigned sipwitch::registry::getEntries ( void  )
static

Definition at line 606 of file registry.cpp.

static time_t sipwitch::registry::getExpires ( void  )
inlinestatic

Definition at line 184 of file server.h.

registry::mapped * sipwitch::registry::getExtension ( const char *  id )
static

Definition at line 1017 of file registry.cpp.

unsigned sipwitch::registry::getIndex ( mappedrr )
static

Definition at line 212 of file registry.cpp.

static unsigned sipwitch::registry::getPrefix ( void  )
inlinestatic

Definition at line 187 of file server.h.

static unsigned sipwitch::registry::getRange ( void  )
inlinestatic

Definition at line 190 of file server.h.

static const char* sipwitch::registry::getRealm ( void  )
inlinestatic

Definition at line 178 of file server.h.

static unsigned sipwitch::registry::getRoutes ( void  )
inlinestatic

Definition at line 193 of file server.h.

registry::pattern * sipwitch::registry::getRouting ( unsigned  trs,
const char *  id 
)
static

Definition at line 993 of file registry.cpp.

void sipwitch::registry::incUse ( mappedrr,
stats::stat_t  stat 
)
static

Definition at line 139 of file registry.cpp.

registry::mapped * sipwitch::registry::invite ( const char *  id,
stats::stat_t  stat 
)
static

Definition at line 611 of file registry.cpp.

bool sipwitch::service::callback::is_active ( void  ) const
inlineprotectedinherited

Definition at line 220 of file service.h.

static bool sipwitch::service::callback::is_configured ( void  )
inlinestaticprotectedinherited

Definition at line 217 of file service.h.

bool sipwitch::registry::isExtension ( const char *  id )
static

Definition at line 972 of file registry.cpp.

bool sipwitch::registry::isUserid ( const char *  id )
static

Definition at line 956 of file registry.cpp.

void callback::publish ( servicecfg )
protectedvirtualinherited

Definition at line 203 of file service.cpp.

void sipwitch::registry::reload ( servicecfg )
privatevirtual

Reimplemented from sipwitch::service::callback.

Definition at line 484 of file registry.cpp.

bool sipwitch::registry::remove ( const char *  id )
static

Definition at line 365 of file registry.cpp.

static void sipwitch::service::callback::setPublic ( void  )
inlinestaticinherited

Definition at line 241 of file service.h.

void sipwitch::registry::snapshot ( FILE *  fp )
privatevirtual

Reimplemented from sipwitch::service::callback.

Definition at line 250 of file registry.cpp.

void sipwitch::registry::start ( servicecfg )
privatevirtual

Reimplemented from sipwitch::service::callback.

Definition at line 220 of file registry.cpp.

void sipwitch::registry::stop ( servicecfg )
privatevirtual

Reimplemented from sipwitch::service::callback.

Definition at line 240 of file registry.cpp.

Field Documentation

bool sipwitch::service::callback::active_flag
protectedinherited

Definition at line 184 of file service.h.

unsigned callback::count = 0
staticprotectedinherited

Definition at line 187 of file service.h.

char* volatile sipwitch::registry::digest
private

Definition at line 169 of file server.h.

volatile time_t sipwitch::registry::expires
private

Definition at line 167 of file server.h.

voip::context_t callback::out_context = NULL
staticinherited

Definition at line 233 of file service.h.

unsigned sipwitch::registry::prefix
private

Definition at line 171 of file server.h.

unsigned sipwitch::registry::range
private

Definition at line 172 of file server.h.

char* volatile sipwitch::registry::realm
private

Definition at line 170 of file server.h.

registry sipwitch::registry::reg
staticprivate

Definition at line 165 of file server.h.

unsigned sipwitch::registry::routes
private

Definition at line 173 of file server.h.

unsigned sipwitch::service::callback::runlevel
protectedinherited

Definition at line 183 of file service.h.

LinkedObject * callback::runlevels = {NULL, NULL, NULL, NULL}
staticprotectedinherited

Definition at line 186 of file service.h.

char callback::session_uuid
staticprotectedinherited

Definition at line 206 of file service.h.

volatile char * callback::sip_contact = NULL
staticprotectedinherited

Definition at line 190 of file service.h.

const char * callback::sip_domain = NULL
staticprotectedinherited

Definition at line 196 of file service.h.

int callback::sip_family = AF_INET
staticprotectedinherited

Definition at line 193 of file service.h.

const char * callback::sip_iface = NULL
staticprotectedinherited

Definition at line 189 of file service.h.

unsigned short callback::sip_port = 5060
staticprotectedinherited

Definition at line 188 of file service.h.

unsigned callback::sip_prefix = 0
staticprotectedinherited

Definition at line 204 of file service.h.

int callback::sip_protocol = IPPROTO_UDP
staticprotectedinherited

Definition at line 192 of file service.h.

bool callback::sip_public = false
staticprotectedinherited

Definition at line 195 of file service.h.

volatile char * callback::sip_publish = NULL
staticprotectedinherited

Definition at line 191 of file service.h.

unsigned callback::sip_range = 0
staticprotectedinherited

Definition at line 205 of file service.h.

const char * callback::sip_realm = "unknown"
staticprotectedinherited

Definition at line 197 of file service.h.

const char * callback::sip_tlsca = "/etc/ssl/ca.pem"
staticprotectedinherited

Definition at line 200 of file service.h.

const char * callback::sip_tlscert = "/etc/ssl/sipwitch.pem"
staticprotectedinherited

Definition at line 203 of file service.h.

const char * callback::sip_tlsdev = "/dev/random"
staticprotectedinherited

Definition at line 199 of file service.h.

const char * callback::sip_tlsdh = "/etc/ssl/dh1024.pem"
staticprotectedinherited

Definition at line 201 of file service.h.

const char * callback::sip_tlskey = "/etc/ssl/private/sipwitch.key"
staticprotectedinherited

Definition at line 202 of file service.h.

int callback::sip_tlsmode = 0
staticprotectedinherited

Definition at line 194 of file service.h.

const char * callback::sip_tlspwd = ""
staticprotectedinherited

Definition at line 198 of file service.h.

voip::context_t callback::tcp_context = NULL
staticinherited

Definition at line 234 of file service.h.

voip::context_t callback::tls_context = NULL
staticinherited

Definition at line 236 of file service.h.

voip::context_t callback::udp_context = NULL
staticinherited

Definition at line 235 of file service.h.


The documentation for this class was generated from the following files:

Generated on Dec 21, 2017 for sipwitch-1.9.15 (*.h and *.cpp), libosip2-5.0.0 (*.h) and libeXosip2-4.0.0 (*.h), by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /