|
static void | bind (unsigned short port) |
|
static void | bind (const char *addr) |
|
static void | setPublic (void) |
|
Definition at line 24 of file forward.cpp.
sipwitch::forward::forward |
( |
| ) |
|
static void* sipwitch::service::callback::alloc |
( |
service * |
cfgp, |
|
|
size_t |
size |
|
) |
| |
|
inlinestaticprotectedinherited |
bool sipwitch::forward::announce |
( |
MappedRegistry * |
user, |
|
|
const char * |
type, |
|
|
const char * |
event, |
|
|
const char * |
expires, |
|
|
const char * |
body |
|
) |
| |
|
privatevirtual |
Announce a SIP publish event from a registered user to plugins.
- Parameters
-
user | registration who publushed. |
type | of message that is published. |
event | type description, such as "presense" message. |
expires | time for this message. |
body | of message published by user agent. |
- Returns
- true if plugin wishes to swallow this message.
Reimplemented from sipwitch::modules::sipwitch.
Definition at line 331 of file forward.cpp.
bool sipwitch::forward::authenticate |
( |
int |
id, |
|
|
const char * |
realm |
|
) |
| |
|
privatevirtual |
Used to verify authentication of a registered session.
This is for use by sessions registered by plugins.
- Parameters
-
id | of registration (eXosip rid). |
realm | of this registration. |
- Returns
- true if valid, false if invalid or to ignore in this plugin.
Reimplemented from sipwitch::modules::sipwitch.
Definition at line 382 of file forward.cpp.
static void sipwitch::service::callback::bind |
( |
unsigned short |
port | ) |
|
|
inlinestaticinherited |
void callback::bind |
( |
const char * |
addr | ) |
|
|
staticinherited |
void callback::cdrlog |
( |
cdr * |
call | ) |
|
|
protectedvirtualinherited |
bool callback::check |
( |
void |
| ) |
|
|
protectedvirtualinherited |
static char* sipwitch::service::callback::dup |
( |
service * |
cfgp, |
|
|
const char * |
s |
|
) |
| |
|
inlinestaticprotectedinherited |
void callback::errlog |
( |
shell::loglevel_t |
level, |
|
|
const char * |
text |
|
) |
| |
|
protectedvirtualinherited |
bool sipwitch::service::callback::is_active |
( |
void |
| ) |
const |
|
inlineprotectedinherited |
static bool sipwitch::service::callback::is_configured |
( |
void |
| ) |
|
|
inlinestaticprotectedinherited |
void sipwitch::modules::sipwitch::period |
( |
long |
slice | ) |
|
|
virtualinherited |
Period service request.
A period is an interval during which stats are flushed and refreshed. This notifies the plugin that a period has occured, and what the interval for the period was in seconds.
- Parameters
-
slice | of period in seconds. |
Definition at line 53 of file modules.cpp.
void callback::publish |
( |
service * |
cfg | ) |
|
|
protectedvirtualinherited |
char * sipwitch::forward::referLocal |
( |
MappedRegistry * |
user, |
|
|
const char * |
target, |
|
|
char * |
buffer, |
|
|
size_t |
size |
|
) |
| |
|
privatevirtual |
Enables plugin to redirect locally dialed destination to new uri.
Might be used by a plugin that does per-user speed-dialing database, for example.
- Parameters
-
user | that is dialing. |
target | user dialed. |
buffer | to store replacement uri in. |
size | of replacement buffer. |
- Returns
- pointer to buffer or NULL if ignored.
Reimplemented from sipwitch::modules::sipwitch.
Definition at line 367 of file forward.cpp.
char * sipwitch::modules::sipwitch::referRemote |
( |
MappedRegistry * |
user, |
|
|
const char * |
target, |
|
|
char * |
buffer, |
|
|
size_t |
size |
|
) |
| |
|
virtualinherited |
Enables plugin to remap users dialing remote destinations.
This might be used as a hook for a plugin that maintains gfc peer tables, for example.
- Parameters
-
user | that is dialing. |
target | of remote uri. |
buffer | to store replacement uri in. |
size | of replacement buffer. |
- Returns
- pointer to buffer of new uri or NULL ignored.
Definition at line 76 of file modules.cpp.
Notify plugins about reply messages from external registrations.
This is used to get result of eXosip SIP registration requests. This might be used to get the result of a plugin registering itself with a gateway or SIP service provider, for example.
- Parameters
-
id | of registration (eXosip rid). |
result | of registration |
Reimplemented from sipwitch::modules::sipwitch.
Definition at line 417 of file forward.cpp.
void sipwitch::forward::reload |
( |
service * |
cfg | ) |
|
|
privatevirtual |
static void sipwitch::service::callback::setPublic |
( |
void |
| ) |
|
|
inlinestaticinherited |
void callback::snapshot |
( |
FILE * |
fp | ) |
|
|
protectedvirtualinherited |
void sipwitch::forward::start |
( |
service * |
cfg | ) |
|
|
privatevirtual |
void callback::stop |
( |
service * |
cfg | ) |
|
|
protectedvirtualinherited |
unsigned sipwitch::forward::active |
bool sipwitch::service::callback::active_flag |
|
protectedinherited |
unsigned sipwitch::forward::allocated |
unsigned callback::count = 0 |
|
staticprotectedinherited |
char* volatile sipwitch::forward::digest |
bool sipwitch::forward::enabled |
time_t sipwitch::forward::expires |
regmap* sipwitch::forward::freelist |
regmap* sipwitch::forward::index[177] |
condlock_t sipwitch::forward::locking |
memalloc sipwitch::forward::pager |
char* volatile sipwitch::forward::proxy |
char* volatile sipwitch::forward::realm |
char* volatile sipwitch::forward::refer |
unsigned sipwitch::service::callback::runlevel |
|
protectedinherited |
LinkedObject * callback::runlevels = {NULL, NULL, NULL, NULL} |
|
staticprotectedinherited |
char* volatile sipwitch::forward::schema |
char* volatile sipwitch::forward::server |
char callback::session_uuid |
|
staticprotectedinherited |
volatile char * callback::sip_contact = NULL |
|
staticprotectedinherited |
const char * callback::sip_domain = NULL |
|
staticprotectedinherited |
int callback::sip_family = AF_INET |
|
staticprotectedinherited |
const char * callback::sip_iface = NULL |
|
staticprotectedinherited |
unsigned short callback::sip_port = 5060 |
|
staticprotectedinherited |
unsigned callback::sip_prefix = 0 |
|
staticprotectedinherited |
int callback::sip_protocol = IPPROTO_UDP |
|
staticprotectedinherited |
bool callback::sip_public = false |
|
staticprotectedinherited |
volatile char * callback::sip_publish = NULL |
|
staticprotectedinherited |
unsigned callback::sip_range = 0 |
|
staticprotectedinherited |
const char * callback::sip_realm = "unknown" |
|
staticprotectedinherited |
const char * callback::sip_tlsca = "/etc/ssl/ca.pem" |
|
staticprotectedinherited |
const char * callback::sip_tlscert = "/etc/ssl/sipwitch.pem" |
|
staticprotectedinherited |
const char * callback::sip_tlsdev = "/dev/random" |
|
staticprotectedinherited |
const char * callback::sip_tlsdh = "/etc/ssl/dh1024.pem" |
|
staticprotectedinherited |
const char * callback::sip_tlskey = "/etc/ssl/private/sipwitch.key" |
|
staticprotectedinherited |
int callback::sip_tlsmode = 0 |
|
staticprotectedinherited |
const char * callback::sip_tlspwd = "" |
|
staticprotectedinherited |
The documentation for this class was generated from the following file: