Table of Contents
List of Examples
Table of Contents
ACC_RADIUS module is used to account transaction information to RADIUS server. It binds to ACC module API and uses the same accounting mechanisms as for other backends.
Therefore you need this module just to send accounting data to a RADIUS server - for more documentation regarding accounting, see the ACC readme.
The module depends on the following modules (in the other words the listed modules must be loaded before this module):
acc - accounting module
The following libraries or applications must be installed before running Kamailio with this module loaded:
radiusclient-ng 0.5.0 or higher. See http://developer.berlios.de/projects/radiusclient-ng/.
This parameter is radius specific. Path to radius client configuration file, set the referred config file correctly and specify there address of server, shared secret (should equal that in /usr/local/etc/raddb/clients for freeRadius servers) and dictionary, see etc for an example of config file and dictionary.
If the parameter is set to empty string, the RADIUS accounting support will be disabled (even if compiled).
Default value is “NULL”.
Example 1.1. radius_config example
... modparam("acc_radius", "radius_config", "/etc/radiusclient/radiusclient.conf") ...
Request flag which needs to be set to account a transaction -- RADIUS specific.
Default value is not-set (no flag).
Request flag which needs to be set to account missed calls -- RADIUS specific.
Default value is not-set (no flag).
Radius service type used for accounting.
Default value is 15 (SIP).
Like acc_log_request
of acc module,
acc_rad_request
reports on
a SIP request event. It reports to radius server as configured in
“radius_config”.
Meaning of the parameters is as follows:
comment - Comment to be appended.
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
Example 1.6. acc_rad_request usage
... acc_rad_request("Some comment"); ... acc_rad_request("200 From Config"); ...