Table of Contents
List of Examples
Table of Contents
ACC_DIAMETER module is used to account transactions information to a DIAMETER server. Read also the documentation for 'acc' module.
NOTE: This was developed based on some very early version of the Diameter protocol, and has not been really tested for many years. It is very likely to be deleted in upcoming releases. If you want to revive this module, you are welcome, be sure you do proper testing before using in production -- it also may need to be updated first to match the exported API by 'acc' module.
NOTE: diameter support was developed for DISC (DIameter Server Client project at http://developer.berlios.de/projects/disc/). This project seems to be no longer maintained and DIAMETER specifications were updated in the meantime. Thus, the DIAMETER part in the module is obsolete and needs rework to be usable with opendiameter or other DIAMETER servers.
IMPORTANT: If you need Diameter accounting, consider to use the ims_charging module, it is up to date and used in IMS/VoLTE deployments.
The module depends on the following modules (in other words the listed modules must be loaded before this module):
acc -- accounting module
Request flag which needs to be set to account a transaction -- DIAMETER specific.
Default value is not-set (no flag).
Request flag which needs to be set to account missed calls -- DIAMETER specific.
Default value is not-set (no flag).
Example 1.2. diameter_missed_flag example
... modparam("acc_diameter", "diameter_missed_flag", 3) ...
Hostname of the machine where the DIAMETER Client is running -- DIAMETER specific.
Default value is “localhost”.
Example 1.3. diameter_client_host example
... modparam("acc_diameter", "diameter_client_host", "3a_server.net") ...
Port number where the Diameter Client is listening -- DIAMETER specific.
Default value is 3000.
Example 1.4. diameter_client_host example
... modparam("acc_diameter", "diameter_client_port", 3000) ...
Like acc_log_request
,
acc_diam_request
reports on
a request. It reports to the configured Diameter server.
Meaning of the parameters is as follows:
comment - Comment to be appended. The string can contain any number of pseudo-variables.
This function can be used from ANY_ROUTE.
Example 1.6. acc_diam_request usage
... acc_diam_request("Some comment"); acc_diam_request("$var(code) Error: $avp(reason)"); ...