Interface class for call detail records.
More...
#include <cdr.h>
|
static cdr * | get (void) |
| Get a free cdr node to fill from the cdr memory pool. More...
|
|
static void | post (cdr *cdr) |
| Post cdr record to callbacks through the cdr thread queue. More...
|
|
static void | start (void) |
| Start cdr subsystem and que dispatch thread. More...
|
|
static void | stop (void) |
| Stop cdr subsystem. More...
|
|
Interface class for call detail records.
This is passed internally to plugins via callbacks and can be logged to a database through one. A more limited subset of the cdr is passed via the events stream also.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 56 of file cdr.h.
Start or end of call?
Definition at line 62 of file cdr.h.
cdr * sipwitch::cdr::get |
( |
void |
| ) |
|
|
static |
Get a free cdr node to fill from the cdr memory pool.
To maximize performance and allow parallel operation a memory pool of cdr objects is used.
- Returns
- free record to fill.
Definition at line 122 of file cdr.cpp.
void sipwitch::cdr::post |
( |
cdr * |
cdr | ) |
|
|
static |
Post cdr record to callbacks through the cdr thread queue.
This returns the cdr object to the mem and then return to free list.
- Parameters
-
Definition at line 102 of file cdr.cpp.
void sipwitch::cdr::start |
( |
void |
| ) |
|
|
static |
Start cdr subsystem and que dispatch thread.
Definition at line 146 of file cdr.cpp.
void sipwitch::cdr::stop |
( |
void |
| ) |
|
|
static |
Stop cdr subsystem.
Definition at line 151 of file cdr.cpp.
unsigned sipwitch::cdr::cid |
Internal call sequence identifiers.
Definition at line 102 of file cdr.h.
Destination requested on our switch.
Definition at line 77 of file cdr.h.
Display name of calling party.
Definition at line 87 of file cdr.h.
unsigned long sipwitch::cdr::duration |
Total duration of the call in seconds.
Definition at line 112 of file cdr.h.
Ident of calling parting.
Definition at line 72 of file cdr.h.
Call destination eventually joined to.
Definition at line 82 of file cdr.h.
Subnet interface the caller appeared on.
Definition at line 92 of file cdr.h.
char sipwitch::cdr::reason[16] |
Reason the call was terminated.
Definition at line 97 of file cdr.h.
unsigned sipwitch::cdr::sequence |
time_t sipwitch::cdr::starting |
Time the call was received.
Definition at line 107 of file cdr.h.
enum { ... } sipwitch::cdr::type |
char sipwitch::cdr::uuid[48] |
A unique identifier for each and every call.
Definition at line 67 of file cdr.h.
The documentation for this class was generated from the following files: