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

#include <server.h>

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

Data Structures

class   message
 

Public Member Functions

  messages ()
 
voip::context_t  getContext (const char *uri)
 

Static Public Member Functions

static void  automatic (void)
 
static void  update (const char *userid)
 
static int  deliver (const char *to, const char *reply, const char *from, caddr_t body, size_t size, const char *msgtype, const char *digest=NULL)
 
static int  system (const char *to, const char *message)
 
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

bool  is_active (void) const
 
virtual void  cdrlog (cdr *call)
 
virtual void  errlog (shell::loglevel_t level, const char *text)
 
virtual void  start (service *cfg)
 
virtual void  stop (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 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]
 

Private Member Functions

bool  check (void)
 
void  reload (service *cfg)
 
void  cleanup (void)
 
void  snapshot (FILE *fp)
 

Static Private Member Functions

static int  deliver (message *msg)
 
static int  remote (const char *to, message *msg, const char *digest=NULL)
 

Static Private Attributes

static messages  manager
 

Detailed Description

Definition at line 535 of file server.h.

Constructor & Destructor Documentation

sipwitch::messages::messages ( )

Definition at line 42 of file messages.cpp.

Member Function Documentation

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

Definition at line 211 of file service.h.

void sipwitch::messages::automatic ( void  )
static

Definition at line 341 of file messages.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::messages::check ( void  )
privatevirtual

Reimplemented from sipwitch::service::callback.

Definition at line 47 of file messages.cpp.

void sipwitch::messages::cleanup ( void  )
private

Definition at line 55 of file messages.cpp.

int sipwitch::messages::deliver ( messagemsg )
staticprivate

Definition at line 282 of file messages.cpp.

int sipwitch::messages::deliver ( const char *  to,
const char *  reply,
const char *  from,
caddr_t  body,
size_t  size,
const char *  msgtype,
const char *  digest = NULL 
)
static

Definition at line 146 of file messages.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.

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

Definition at line 162 of file service.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.

void callback::publish ( servicecfg )
protectedvirtualinherited

Definition at line 203 of file service.cpp.

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

Reimplemented from sipwitch::service::callback.

Definition at line 82 of file messages.cpp.

int sipwitch::messages::remote ( const char *  to,
messagemsg,
const char *  digest = NULL 
)
staticprivate

Definition at line 212 of file messages.cpp.

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

Definition at line 241 of file service.h.

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

Reimplemented from sipwitch::service::callback.

Definition at line 108 of file messages.cpp.

void callback::start ( servicecfg )
protectedvirtualinherited

Reimplemented in sipwitch::media, sipwitch::stack, sipwitch::registry, sipwitch::forward, and sipwitch::scripting.

Definition at line 207 of file service.cpp.

void callback::stop ( servicecfg )
protectedvirtualinherited

Reimplemented in sipwitch::media, sipwitch::stack, and sipwitch::registry.

Definition at line 211 of file service.cpp.

int sipwitch::messages::system ( const char *  to,
const char *  message 
)
static

Definition at line 181 of file messages.cpp.

void sipwitch::messages::update ( const char *  userid )
static

Definition at line 116 of file messages.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.

messages sipwitch::messages::manager
staticprivate

Definition at line 551 of file server.h.

voip::context_t callback::out_context = NULL
staticinherited

Definition at line 233 of file service.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 によって変換されたページ (->オリジナル) /