#include <bayonne.h>
Inheritance diagram for CallStat:
Public Methods | |
CallStat () | |
int | getCapacity (void) |
Get current call capacity. More... | |
long | getStat (statitem_t item) |
get a stat item. More... | |
void | incIncoming (void) |
inc active incoming call count. | |
void | decIncoming (void) |
dec active incoming call count. | |
void | incOutgoing (void) |
inc active outging call count. | |
void | decOutgoing (void) |
dec active outgoing call count. | |
void | Update (void) |
Update stats, active to last. | |
Protected Attributes | |
int | capacity |
struct { | |
int incoming | |
int outgoing | |
} | active |
struct { | |
int incoming | |
int outgoing | |
} | max |
struct { | |
int incoming | |
int outgoing | |
} | lastmax |
struct { | |
long incoming | |
long outgoing | |
} | total |
struct { | |
long incoming | |
long outgoing | |
} | lasttotal |
|
|
|
Update stats, active to last.
|
|
dec active incoming call count.
|
|
dec active outgoing call count.
|
|
Get current call capacity.
|
|
get a stat item.
|
|
inc active incoming call count.
|
|
inc active outging call count.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|