26 #ifndef _SIPWITCH_EVENTS_H_
27 #define _SIPWITCH_EVENTS_H_
29 #ifndef _UCOMMON_LINKED_H_
30 #include <ucommon/linked.h>
33 #ifndef _UCOMMON_THREAD_H_
34 #include <ucommon/thread.h>
37 #ifndef _UCOMMON_STRING_H_
38 #include <ucommon/string.h>
41 #ifndef _UCOMMON_SOCKET_H_
42 #include <ucommon/socket.h>
45 #ifndef __SIPWITCH_NAMESPACE_H_
49 #ifndef __SIPWITCH_MAPPED_H_
53 #ifndef __SIPWITCH_CDR_H_
77 typedef enum {NOTICE,
WARNING, FAILURE, TERMINATE, STATE, REALM, CALL, DROP, ACTIVATE, RELEASE,
WELCOME, SYNC,
CONTACT, PUBLISH}
type_t;
115 static bool start(
void);
121 static void state(
const char *newstate);
127 static void realm(
const char *newrealm);
133 static void connect(
cdr *rec);
139 static void drop(
cdr *rec);
161 static void notice(
const char *reason);
169 static void warning(
const char *reason);
177 static void failure(
const char *reason);
182 static void reload(
void);
188 static void publish(
const char *address);
194 static void terminate(
const char *reason);
201 static void sync(
unsigned period = 0l);
Event message and supporting methods for plugins.
Representation of a mapped active user record.
Definitions for memory mapped objects that may be shared between processes.
Basic server call detail record.
GNU SIP Witch library namespace.
type_t type
Type of event message.
Interface class for call detail records.
type_t
Enumeration for event type.