The following sections in the config file can be used to configure accounting.
This section defines a list of modules which may be used to perform accounting. The accounting function can be used for logging gatekeeper on/off events and call start/stop/update events. Each accounting module logs received events to module-specific storage. The various storage options include plain text file, RADIUS server and many more. The configuration is very similar to the one for gatekeeper authentication (see [Gatekeeper::Auth]).
All CDRs are also sent to the status port and can be used by external applications.
acctmod=actions
<acctmod> := FileAcct | RadAcct | SQLAcct | StatusAcct | SyslogAcct | CapacityControl | ...
<actions> := <control>[;<event>,<event>,...]
<control> := optional | required | sufficient | alternative
<event> := start | stop | alert | connect | update | register | unregister | on | off
start - a call has been started and a Setup message has been received (only available in routed mode)alert - a call is alerting (only available in routed mode)connect - a call has been connected (only available in routed mode)update - a call is active and a periodic update is performed
to reflect the new call duration. The frequency of these updates is determined
by the AcctUpdateInterval variable from the
[CallTable]
sectionregister - an endpoint has registeredunregister - an endpoint has unregisteredstop - a call has been disconnected (removed from the gatekeeper call table)on - the gatekeeper has been startedoff - the gatekeeper has been shut down