|
SIP Witch 1.9.15
|
#include <server.h>


Public Types | |
| enum | dialmode_t { EXT_DIALING, USER_DIALING, ALL_DIALING } |
| Dialing mode supported. More... | |
| typedef treemap< char * > | keynode |
| Definition of a xml node. More... | |
Public Member Functions | |
| server (const char *id) | |
| bool | load (FILE *file, keynode *node=NULL) |
| Load xml file into xml tree. More... | |
| keynode * | getPath (const char *path) |
| keynode * | getNode (keynode *base, const char *id, const char *value) |
| keynode * | getNode (keynode *base, const char *grp, const char *attr, const char *value) |
| keynode * | addNode (keynode *base, define *defs) |
| keynode * | addNode (keynode *base, const char *id, const char *value) |
| keynode * | getList (const char *path) |
| keynode * | getRoot (void) |
| void | setContact (const char *text) |
| void | commit (void) |
Static Public Member Functions | |
| static bool | check (void) |
| static profile_t * | getProfile (const char *id) |
| static keynode * | getRouting (const char *id) |
| static void | getProvision (const char *id, usernode &user) |
| static void | getDialing (const char *id, usernode &user) |
| static keynode * | getConfig (void) |
| static void | listPolicy (FILE *fp) |
| static stack::subnet * | getPolicy (const struct sockaddr *addr) |
| static stack::subnet * | getSubnet (const char *id) |
| static bool | isLocal (const struct sockaddr *addr) |
| static void | release (stack::subnet *access) |
| static void | release (keynode *node) |
| static void | release (usernode &user) |
| static void | reload (void) |
| static Socket::address * | getContact (const char *id) |
| static void | plugins (const char *argv0, const char *names) |
| static void | run (void) |
| static void | stop (void) |
| static void * | allocate (size_t size, LinkedObject **list, volatile unsigned *count=NULL) |
| static unsigned | allocate (void) |
| static bool | announce (MappedRegistry *rr, const char *msgtype, const char *event, const char *expires, const char *body) |
| static void | activate (MappedRegistry *rr) |
| static void | expire (MappedRegistry *rr) |
| static void | logging (MappedRegistry *rr, const char *reason) |
| static void | registration (voip::reg_t id, modules::regmode_t mode) |
| static bool | authenticate (voip::reg_t id, const char *realm) |
| static const char * | referLocal (MappedRegistry *rr, const char *target, char *buffer, size_t size) |
| static const char * | referRemote (MappedRegistry *rr, const char *target, char *buffer, size_t size) |
| static bool | checkId (const char *id) |
| static void | printlog (const char *fmt,...) __PRINTF(1 |
| static LinkedObject * | getModules (void) |
| static LinkedObject * | getGenerics (void) |
| static void | publish (const char *addr) |
| Set and publish public "appearing" address of the server. More... | |
| static void | published (struct sockaddr_storage *peer) |
| static const char * | getValue (keynode *base, const char *id) |
| static void | dump (FILE *fp, keynode *node, unsigned level) |
| static void | snapshot (void) |
| static void | dumpfile (void) |
| static bool | period (long slice) |
| static void | result (const char *value) |
| static void | startup (void) |
| static void | shutdown (void) |
| static long | uptime (void) |
| static bool | match (const char *digits, const char *pattern, bool partial) |
| static keynode * | get (void) |
| static keynode * | getProtected (const char *path) |
| static keynode * | getUser (const char *uid) |
| static keynode * | path (const char *p) |
| static keynode * | list (const char *p) |
| static keynode * | getEnviron (void) |
| static string_t | getContact (void) |
| static const char * | getInterface (void) |
| static unsigned short | getPort (void) |
Static Public Attributes | |
| static shell::logmode_t | logmode = shell::SYSTEM_LOG |
| static unsigned | uid = 1000 |
| static const char * | sipusers = "sipusers" |
| static const char * | sipadmin = "wheel" |
| static int | exit_code = 0 |
| static volatile dialmode_t | dialmode = service::ALL_DIALING |
Protected Member Functions | |
| void | addAttributes (keynode *node, char *attrib) |
| Add attributes in a XML entity as child nodes of the xml node. More... | |
Protected Attributes | |
| keynode | root |
| stringbuf< 1024 > | buffer |
| LinkedObject * | keys [177] |
| const char * | contact |
Static Protected Attributes | |
| static service * | cfg = NULL |
| static condlock_t | locking |
Private Types | |
| typedef linked_value < profile_t, LinkedObject > | profile |
Private Member Functions | |
| bool | create (const char *id, keynode *node) |
| keynode * | find (const char *id) |
| void | confirm (void) |
| void | dump (FILE *fp) |
Private Attributes | |
| cidr::policy * | acl |
| keynode ** | extmap |
| keynode * | provision |
| LinkedObject * | profiles |
|
inherited |
|
private |
|
inherited |
| sipwitch::server::server | ( | const char * | id | ) |
Definition at line 80 of file server.cpp.
|
static |
Definition at line 149 of file server.cpp.
|
protectedinherited |
Add attributes in a XML entity as child nodes of the xml node.
| node | in tree of our node. |
| attrib | string we must decompose into child nodes. |
Definition at line 523 of file service.cpp.
|
inherited |
Definition at line 458 of file service.cpp.
|
inherited |
Definition at line 427 of file service.cpp.
|
static |
Definition at line 1030 of file server.cpp.
|
static |
Definition at line 1025 of file server.cpp.
|
static |
Definition at line 181 of file server.cpp.
|
static |
Definition at line 127 of file server.cpp.
|
static |
Definition at line 877 of file server.cpp.
|
static |
Definition at line 796 of file server.cpp.
|
inherited |
Definition at line 910 of file service.cpp.
|
privatevirtual |
Reimplemented from sipwitch::service.
Definition at line 225 of file server.cpp.
|
private |
Definition at line 208 of file server.cpp.
|
staticinherited |
Definition at line 735 of file service.cpp.
|
privatevirtual |
Reimplemented from sipwitch::service.
Definition at line 891 of file server.cpp.
|
staticinherited |
Definition at line 773 of file service.cpp.
|
static |
Definition at line 162 of file server.cpp.
|
private |
Definition at line 193 of file server.cpp.
|
staticinherited |
Definition at line 387 of file service.cpp.
|
static |
Definition at line 733 of file server.cpp.
|
staticinherited |
Definition at line 792 of file service.cpp.
|
static |
Definition at line 744 of file server.cpp.
|
static |
Definition at line 816 of file server.cpp.
|
inlinestaticinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
|
inherited |
Definition at line 376 of file service.cpp.
|
inlinestaticinherited |
|
inherited |
Definition at line 503 of file service.cpp.
|
inherited |
Definition at line 478 of file service.cpp.
|
inherited |
Definition at line 400 of file service.cpp.
|
static |
Definition at line 686 of file server.cpp.
|
inlinestaticinherited |
|
static |
Definition at line 703 of file server.cpp.
|
staticinherited |
Definition at line 360 of file service.cpp.
|
static |
Definition at line 850 of file server.cpp.
|
inlineinherited |
|
static |
Definition at line 764 of file server.cpp.
|
static |
Definition at line 614 of file server.cpp.
|
staticinherited |
Definition at line 335 of file service.cpp.
|
staticinherited |
Definition at line 446 of file service.cpp.
|
static |
Definition at line 600 of file server.cpp.
|
staticinherited |
Definition at line 320 of file service.cpp.
|
static |
Definition at line 629 of file server.cpp.
|
inherited |
Load xml file into xml tree.
This may load into the root node, or to a subnode. The <provision> xml files for users are all loaded into the <provision> subtree this way.
| file | to load from. |
| node | to load to or NULL to make a root node for master config. |
Definition at line 565 of file service.cpp.
|
static |
Definition at line 175 of file server.cpp.
|
staticinherited |
Definition at line 954 of file service.cpp.
|
staticinherited |
Definition at line 310 of file service.cpp.
|
staticinherited |
Definition at line 828 of file service.cpp.
|
static |
Definition at line 1053 of file server.cpp.
|
static |
Definition at line 1373 of file server.cpp.
|
staticinherited |
Set and publish public "appearing" address of the server.
This probably should also appear in the events system.
| addr | we are appearing as (dns name or ip addr). |
Definition at line 272 of file service.cpp.
|
staticinherited |
Definition at line 295 of file service.cpp.
|
static |
Definition at line 108 of file server.cpp.
|
static |
Definition at line 89 of file server.cpp.
|
static |
Definition at line 139 of file server.cpp.
|
static |
Definition at line 594 of file server.cpp.
|
static |
Definition at line 577 of file server.cpp.
|
static |
Definition at line 583 of file server.cpp.
|
static |
Definition at line 912 of file server.cpp.
|
staticinherited |
|
static |
Definition at line 1100 of file server.cpp.
|
inlineinherited |
|
staticinherited |
Definition at line 719 of file service.cpp.
|
staticinherited |
Definition at line 861 of file service.cpp.
|
staticinherited |
Definition at line 700 of file service.cpp.
|
static |
Definition at line 1095 of file server.cpp.
|
staticinherited |
Definition at line 300 of file service.cpp.
|
protectedinherited |
|
staticprotectedinherited |
|
staticinherited |
|
protectedinherited |
|
staticprotectedinherited |
|
static |
|
private |
|
static |
1.8.6