3.80.20. ComputeCostHook Previous topic Parent topic Child topic Next topic

Specifies an optional Perl hook that can be used to calculate the cost when a RADIUS Accounting Stop is received. The hook is passed the call duration in seconds, and is expected to return the cost in cents. If ComputeCostHook is not specified, then CentsPerSecond will be used to calculate the cost.