SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Public Types | Static Public Member Functions
sipwitch::modules Class Reference

Common interfaces and clases for plugins. More...

#include <modules.h>

Data Structures

class  generic
 A more generic service class for use by plugins. More...
 
class  sipwitch
 Common base class for sipwitch plugin services. More...
 

Public Types

enum  regmode_t { REG_FAILED, REG_SUCCESS }
 

Static Public Member Functions

static void cdrlog (FILE *file, cdr *call)
 Post cdr record to a file. More...
 
static void errlog (shell::loglevel_t level, const char *text)
 Module access to error logging system. More...
 

Detailed Description

Common interfaces and clases for plugins.

Author
David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 55 of file modules.h.

Member Enumeration Documentation

Enumerator
REG_FAILED 
REG_SUCCESS 

Definition at line 58 of file modules.h.

Member Function Documentation

void sipwitch::modules::cdrlog ( FILE *  file,
cdr call 
)
static

Post cdr record to a file.

This provides a generic way to output cdr info, such as to a fifo for a database logger.

Parameters
fileto write to.
callrecord to publish.

Definition at line 91 of file modules.cpp.

void sipwitch::modules::errlog ( shell::loglevel_t  level,
const char *  text 
)
static

Module access to error logging system.

This also posts to the events subsystem.

Parameters
levelof logging event.
textof logging event.

Definition at line 81 of file modules.cpp.


The documentation for this class was generated from the following files: