acc module is used to report on transactions to syslog, SQL and Radius.
To report on a transaction using syslog, use “setflag” to mark a transaction you are interested in with a flag, load accounting module and set its “log_flag” to the same flag number. The acc module will then report on completed transaction to syslog. A typical usage of the module takes no acc-specific script command — the functionality binds invisibly through transaction processing. Script writers just need to mark the transaction for accounting with proper setflag.
What is printed depends on module’s “log_fmt” parameter. It’s a string with characters specifying which parts of request should be printed:
- c = Call-Id
- d = To tag (Dst)
- f = From
- i = Inbound Request-URI
- m = Method
- o = Outbound Request-URI
- r = fRom
- s = Status
- t = To
- u = digest Username
- p = username Part of inbound Request-URI
If a value is not present in request, “n/a” is accounted instead.
Dependencies
The ACC modules depends on
- tm: Transaction Manager
- a database module — If compiled with database support.
Back to SIP Express Router