reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
repro::AccountingCollector Class Reference

#include <AccountingCollector.hxx>

Inheritance diagram for repro::AccountingCollector:
[legend]

Public Types

enum  RegistrationEvent { RegistrationAdded = 1 , RegistrationRefreshed = 2 , RegistrationRemoved = 3 , RegistrationRemovedAll = 4 }
 
enum  SessionEvent {
  SessionCreated = 1 , SessionRouted = 2 , SessionRedirected = 3 , SessionEstablished = 4 ,
  SessionCancelled = 5 , SessionEnded = 6 , SessionError = 7
}
 
- Public Types inherited from resip::ThreadIf
typedef std::thread::id Id
 
typedef pthread_key_t TlsKey
 
typedef void TlsDestructor(void *)
 

Public Member Functions

 AccountingCollector (ProxyConfig &config)
 
virtual ~AccountingCollector ()
 
virtual void doSessionAccounting (const resip::SipMessage &sip, bool received, RequestContext &context)
 
virtual void doRegistrationAccounting (RegistrationEvent regevent, const resip::SipMessage &sip)
 
- Public Member Functions inherited from resip::ThreadIf
 ThreadIf ()
 
virtual ~ThreadIf ()
 
virtual void run ()
 
void join ()
 
void detach ()
 
virtual void shutdown ()
 
virtual bool waitForShutdown (int ms) const
 
bool isShutdown () const
 

Additional Inherited Members

- Static Public Member Functions inherited from resip::ThreadIf
static Id selfId ()
 
static int tlsKeyCreate (TlsKey &key, TlsDestructor *destructor)
 This function follows pthread_key_create() signature.
 
static int tlsKeyDelete (TlsKey key)
 This function follows pthread_key_delete() signature.
 
static int tlsSetValue (TlsKey key, const void *val)
 This function follows pthread_setspecific() signature.
 
static void * tlsGetValue (TlsKey key)
 This function follows pthread_getspecific() signature.
 
- Protected Attributes inherited from resip::ThreadIf
std::shared_ptr< std::thread > mThreadObj
 
Id mId
 
bool mShutdown
 
Mutex mShutdownMutex
 
Condition mShutdownCondition
 

Detailed Description

Definition at line 20 of file AccountingCollector.hxx.

Member Enumeration Documentation

◆ RegistrationEvent

Enumerator
RegistrationAdded 
RegistrationRefreshed 
RegistrationRemoved 
RegistrationRemovedAll 

Definition at line 23 of file AccountingCollector.hxx.

◆ SessionEvent

Enumerator
SessionCreated 
SessionRouted 
SessionRedirected 
SessionEstablished 
SessionCancelled 
SessionEnded 
SessionError 

Definition at line 31 of file AccountingCollector.hxx.

Constructor & Destructor Documentation

◆ AccountingCollector()

AccountingCollector::AccountingCollector ( ProxyConfig &  config)

Definition at line 33 of file AccountingCollector.cxx.

◆ ~AccountingCollector()

AccountingCollector::~AccountingCollector ( )
virtual

Definition at line 62 of file AccountingCollector.cxx.

Member Function Documentation

◆ doRegistrationAccounting()

void AccountingCollector::doRegistrationAccounting ( AccountingCollector::RegistrationEvent  regevent,
const resip::SipMessage &  sip 
)
virtual

Definition at line 73 of file AccountingCollector.cxx.

◆ doSessionAccounting()

void AccountingCollector::doSessionAccounting ( const resip::SipMessage &  sip,
bool  received,
RequestContext &  context 
)
virtual

Definition at line 214 of file AccountingCollector.cxx.


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