System configuration instance and service functions.
More...
#include <service.h>
Inheritance diagram for sipwitch::service:
Collaboration diagram for sipwitch::service:
Data Structures
Callback methods for objects managed under the service thread.
More...
Keyword and value pair definition lists.
More...
The current singleton instance of the active xml configuration tree.
More...
Used to splice new chains onto an existing xml tree.
More...
Linked list of named xml node locations.
More...
A pointer to a subtree in the xml configuration tree.
More...
Pointer to a provisioned user xml subtree.
More...
Public Types
Public Member Functions
Load xml file into xml tree.
More...
virtual void
dump (FILE *fp)
Static Public Member Functions
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
Protected Member Functions
Add attributes in a XML entity as child nodes of the xml node.
More...
Protected Attributes
Static Protected Attributes
Friends
Detailed Description
System configuration instance and service functions.
This provides an instance of a system configuration compiled from xml configs. There is an active instance which represents the current configuration, and a new instance can be created without stopping the server. This also provides high level service functions in the runtime library for the server and plugins to use. The xml tree nodes are stored in a paged allocator.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 78 of file service.h.
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::service::service
(
const char *
name,
size_t
s = 0
)
sipwitch::service::~service
(
)
virtual |
Member Function Documentation
void sipwitch::service::addAttributes
(
keynode *
node,
char *
attrib
)
protected |
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
)
bool sipwitch::service::check
(
void
)
static |
void sipwitch::service::commit
(
void
)
void sipwitch::service::confirm
(
void
)
virtual |
void sipwitch::service::dump
(
FILE *
fp,
unsigned
level
)
static |
void sipwitch::service::dump
(
FILE *
fp )
virtual |
void sipwitch::service::dumpfile
(
void
)
static |
string_t sipwitch::service::getContact
(
void
)
static |
static
keynode* sipwitch::service::getEnviron
(
void
)
inlinestatic |
static
LinkedObject* sipwitch::service::getGenerics
(
void
)
inlinestatic |
static const char* sipwitch::service::getInterface
(
void
)
inlinestatic |
const char *
id,
const char *
value
)
const char *
grp,
const char *
attr,
const char *
value
)
static unsigned short sipwitch::service::getPort
(
void
)
inlinestatic |
keynode* sipwitch::service::getRoot
(
void
)
inline |
const char * sipwitch::service::getValue
(
keynode *
base,
const char *
id
)
static |
bool sipwitch::service::load
(
FILE *
file,
)
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.
bool sipwitch::service::match
(
const char *
digits,
const char *
pattern,
bool
partial
)
static |
bool sipwitch::service::period
(
long
slice )
static |
void sipwitch::service::publish
(
const char *
addr )
static |
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 )
static |
void sipwitch::service::release
(
keynode *
node )
static |
static void sipwitch::service::result
(
const char *
value )
static |
void sipwitch::service::setContact
(
const char *
text )
inline |
void sipwitch::service::shutdown
(
void
)
static |
void sipwitch::service::snapshot
(
void
)
static |
void sipwitch::service::startup
(
void
)
static |
long sipwitch::service::uptime
(
void
)
static |
Friends And Related Function Documentation
Field Documentation
stringbuf<1024> sipwitch::service::buffer
protected |
service * sipwitch::service::cfg = NULL
staticprotected |
const char* sipwitch::service::contact
protected |
condlock_t sipwitch::service::locking
staticprotected |
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