#include <bayonne.h>
Inheritance diagram for CallStat:

Public Member Functions | |
| CallStat () | |
| int | getCapacity (void) |
| Get current call capacity. | |
| long | getStat (statitem_t item) |
| get a stat item. | |
| void | getStat (unsigned long *save) |
| Get a stat record at once. | |
| 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. | |
| long | getIdleTime () |
| Get idle time in seconds. | |
| void | update (void) |
| Update stats, active to last. | |
Protected Attributes | |
| volatile bool | dirty |
| time_t | updated |
| time_t | prior |
| time_t | idled |
| 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 |
Static Protected Attributes | |
| static unsigned long | upincoming |
| static unsigned long | upoutgoing |
| static time_t | uptime |
|
|
|
|
|
dec active incoming call count.
|
|
|
dec active outgoing call count.
|
|
|
Get current call capacity.
|
|
|
Get idle time in seconds.
Reimplemented in TrunkGroup. |
|
|
Get a stat record at once.
|
|
|
get a stat item.
|
|
|
inc active incoming call count.
|
|
|
inc active outging call count.
|
|
|
Update stats, active to last.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.4