#include <server.h>
Inheritance diagram for sipwitch::server:
Collaboration diagram for sipwitch::server:
Public Types
Public Member Functions
Load xml file into xml tree.
More...
Static Public Member Functions
static bool
isLocal (const struct sockaddr *addr)
static Socket::address *
getContact (const char *id)
static void
plugins (const char *argv0, const char *names)
static bool
announce (
MappedRegistry *rr, const char *msgtype, const char *event, const char *expires, const char *body)
static bool
checkId (const char *id)
static void
printlog (const char *fmt,...) __PRINTF(1
static void
publish (const char *addr)
Set and publish public "appearing" address of the server.
More...
static void
published (struct sockaddr_storage *peer)
static void
dump (FILE *fp,
keynode *node, unsigned level)
static bool
period (long slice)
static bool
match (const char *digits, const char *pattern, bool partial)
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"
Protected Member Functions
Add attributes in a XML entity as child nodes of the xml node.
More...
Protected Attributes
Static Protected Attributes
Private Types
Private Member Functions
Private Attributes
Detailed Description
Member Typedef Documentation
Definition of a xml node.
Definition at line 84 of file service.h.
Member Enumeration Documentation
Dialing mode supported.
Whether by extension, userid, or both.
| Enumerator |
|---|
| EXT_DIALING |
| USER_DIALING |
| ALL_DIALING |
Definition at line 89 of file service.h.
Constructor & Destructor Documentation
sipwitch::server::server
(
const char *
id )
Member Function Documentation
void sipwitch::service::addAttributes
(
keynode *
node,
char *
attrib
)
protectedinherited |
Add attributes in a XML entity as child nodes of the xml node.
- Parameters
-
node in tree of our node.
attrib string we must decompose into child nodes.
Definition at line 523 of file service.cpp.
const char *
id,
const char *
value
)
inherited |
void * sipwitch::server::allocate
(
size_t
size,
volatile unsigned *
count = NULL
)
static |
unsigned sipwitch::server::allocate
(
void
)
static |
const char *
msgtype,
const char *
event,
const char *
expires,
const char *
body
)
static |
const char *
realm
)
static |
bool sipwitch::server::check
(
void
)
static |
bool sipwitch::server::checkId
(
const char *
id )
static |
void sipwitch::service::commit
(
void
)
inherited |
void sipwitch::server::confirm
(
void
)
privatevirtual |
bool sipwitch::server::create
(
const char *
id,
)
private |
void sipwitch::service::dump
(
FILE *
fp,
unsigned
level
)
staticinherited |
void sipwitch::server::dump
(
FILE *
fp )
privatevirtual |
void sipwitch::service::dumpfile
(
void
)
staticinherited |
string_t sipwitch::service::getContact
(
void
)
staticinherited |
Socket::address * sipwitch::server::getContact
(
const char *
id )
static |
void sipwitch::server::getDialing
(
const char *
id,
)
static |
static
keynode* sipwitch::service::getEnviron
(
void
)
inlinestaticinherited |
static
LinkedObject* sipwitch::service::getGenerics
(
void
)
inlinestaticinherited |
static const char* sipwitch::service::getInterface
(
void
)
inlinestaticinherited |
const char *
id,
const char *
value
)
inherited |
const char *
grp,
const char *
attr,
const char *
value
)
inherited |
stack::subnet * sipwitch::server::getPolicy
(
const struct sockaddr *
addr )
static |
static unsigned short sipwitch::service::getPort
(
void
)
inlinestaticinherited |
profile_t * sipwitch::server::getProfile
(
const char *
id )
static |
void sipwitch::server::getProvision
(
const char *
id,
)
static |
keynode* sipwitch::service::getRoot
(
void
)
inlineinherited |
const char * sipwitch::service::getValue
(
keynode *
base,
const char *
id
)
staticinherited |
bool sipwitch::server::isLocal
(
const struct sockaddr *
addr )
static |
void sipwitch::server::listPolicy
(
FILE *
fp )
static |
bool sipwitch::service::load
(
FILE *
file,
)
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.
- Parameters
-
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.
const char *
reason
)
static |
bool sipwitch::service::match
(
const char *
digits,
const char *
pattern,
bool
partial
)
staticinherited |
bool sipwitch::service::period
(
long
slice )
staticinherited |
void sipwitch::server::plugins
(
const char *
argv0,
const char *
names
)
static |
void sipwitch::server::printlog
(
const char *
fmt,
...
)
static |
void sipwitch::service::publish
(
const char *
addr )
staticinherited |
Set and publish public "appearing" address of the server.
This probably should also appear in the events system.
- Parameters
-
addr we are appearing as (dns name or ip addr).
Definition at line 272 of file service.cpp.
void sipwitch::service::published
(
struct sockaddr_storage *
peer )
staticinherited |
const char *
target,
char *
buffer,
size_t
size
)
static |
const char *
target,
char *
buffer,
size_t
size
)
static |
void sipwitch::server::release
(
keynode *
node )
static |
void sipwitch::server::release
(
usernode &
user )
static |
void sipwitch::server::reload
(
void
)
static |
static void sipwitch::service::result
(
const char *
value )
staticinherited |
void sipwitch::server::run
(
void
)
static |
void sipwitch::service::setContact
(
const char *
text )
inlineinherited |
void sipwitch::service::shutdown
(
void
)
staticinherited |
void sipwitch::service::snapshot
(
void
)
staticinherited |
void sipwitch::service::startup
(
void
)
staticinherited |
void sipwitch::server::stop
(
void
)
static |
long sipwitch::service::uptime
(
void
)
staticinherited |
Field Documentation
cidr::policy* sipwitch::server::acl
private |
stringbuf<1024> sipwitch::service::buffer
protectedinherited |
service * sipwitch::service::cfg = NULL
staticprotectedinherited |
const char* sipwitch::service::contact
protectedinherited |
int sipwitch::server::exit_code = 0
static |
condlock_t sipwitch::service::locking
staticprotectedinherited |
shell::logmode_t sipwitch::server::logmode = shell::SYSTEM_LOG
static |
keynode* sipwitch::server::provision
private |
const char * sipwitch::server::sipadmin = "wheel"
static |
const char * sipwitch::server::sipusers = "sipusers"
static |
unsigned sipwitch::server::uid = 1000
static |
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