22 #ifndef _SIPWITCH_MODULES_H_
23 #define _SIPWITCH_MODULES_H_
25 #ifndef _UCOMMON_STRING_H_
26 #include <ucommon/string.h>
29 #ifndef __SIPWITCH_VOIP_H_
33 #ifndef __SIPWITCH_SERVICE_H_
37 #ifndef __SIPWITCH_CDR_H_
41 #ifndef _SIPWITCH_CONTROL_H_
45 #ifndef _SIPWITCH_URI_H_
58 typedef enum {REG_FAILED, REG_SUCCESS} regmode_t;
83 virtual void period(
long slice);
94 virtual bool announce(
MappedRegistry *user,
const char *type,
const char *event,
const char *expires,
const char *body);
125 virtual bool authenticate(
voip::reg_t id,
const char *realm);
137 virtual char *referLocal(
MappedRegistry *user,
const char *target,
char *buffer,
size_t size);
149 virtual char *referRemote(
MappedRegistry *user,
const char *target,
char *buffer,
size_t size);
174 virtual srv::address *resolve(
const char *
uri,
struct addrinfo *hints);
183 static void cdrlog(FILE *file,
cdr *call);
191 static void errlog(shell::loglevel_t level,
const char *text);
Some convenience methods for manipulating SIP uri's.
Representation of a mapped active user record.
Manipulate address strings.
Basic server call detail record.
A more generic service class for use by plugins.
Callback methods for objects managed under the service thread.
Service configuration and component callbacks.
Manage control interface.
Interface class for call detail records.
Common interfaces and clases for plugins.
Common base class for sipwitch plugin services.