17 #include <sipwitch-config.h>
18 #include <ucommon/ucommon.h>
19 #include <ucommon/export.h>
86 cb->errlog(level, text);
94 const char *buf = dt.c_str();
97 shell::debug(1,
"call %08x:%u %s %s %s %ld %s %s %s %s",
112 fprintf(fp,
"%08x:%u %s %s %s %ld %s %s %s %s\n",
Used for definitions of plugin modules.
Some convenience methods for manipulating SIP uri's.
virtual bool announce(MappedRegistry *user, const char *type, const char *event, const char *expires, const char *body)
Announce a SIP publish event from a registered user to plugins.
virtual void expiring(MappedRegistry *user)
Notify plugins a user registration has been expired or released.
static void cdrlog(FILE *file, cdr *call)
Post cdr record to a file.
Representation of a mapped active user record.
unsigned cid
Internal call sequence identifiers.
virtual void registration(voip::reg_t id, regmode_t reg)
Notify plugins about reply messages from external registrations.
enum sipwitch::cdr::@0 type
Start or end of call?
time_t starting
Time the call was received.
virtual char * referLocal(MappedRegistry *user, const char *target, char *buffer, size_t size)
Enables plugin to redirect locally dialed destination to new uri.
static LinkedObject * getModules(void)
generic()
Construct a generic service instance.
char reason[16]
Reason the call was terminated.
sipwitch()
Create a service instance and add to runtime list of services to start and stop.
static void errlog(shell::loglevel_t level, const char *text)
Module access to error logging system.
char joined[MAX_IDENT_SIZE]
Call destination eventually joined to.
char dialed[MAX_IDENT_SIZE]
Destination requested on our switch.
virtual void period(long slice)
Period service request.
char display[MAX_DISPLAY_SIZE]
Display name of calling party.
char ident[MAX_IDENT_SIZE]
Ident of calling parting.
System configuration instance and service functions.
Manage control interface.
virtual srv::address * resolve(const char *uri, struct addrinfo *hints)
New srv resolver plugin.
Interface class for call detail records.
virtual void activating(MappedRegistry *user)
Notify plugins a user registration is being activated.
unsigned long duration
Total duration of the call in seconds.
virtual bool authenticate(voip::reg_t id, const char *realm)
Used to verify authentication of a registered session.
virtual char * referRemote(MappedRegistry *user, const char *target, char *buffer, size_t size)
Enables plugin to remap users dialing remote destinations.
char network[MAX_NETWORK_SIZE *2]
Subnet interface the caller appeared on.