Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mod_feature_fup.pm [2019-05-16 19:54] (current)
nkukard created
Line 1: Line 1:
 +====== mod_feature_fup.pm ======
 +
 +<btn type="​success"​ size="​xs">​Supported <​badge>​v1.0.x</​badge></​btn>​
 +
 +Implements the checking of the traffic usages within a defined period of time, should this traffic usage exceed a defined threshold a conditional variable ''​SMRadius_FUP''​ is set to "​1"​. If the threshold is not met the variable is set to "​0"​. If the user has no FUP attributes, the variable is set to "​-1"​.
 +
 +===== Attributes =====
 +
 +==== SMRadius-FUP-Period ====
 +
 +Indicates the number of days the FUP traffic should be calculated on.
 +
 +<​code>​
 +# Calculate the FUP usage on 7 days
 +SMRadius-FUP-Period ​ :=  7
 +</​code>​
 +
 +==== SMRadius-FUP-Traffic-Threshold ====
 +
 +This attirbute indicates the threshold in MiB for when the conditional ''​SMRadius_FUP''​ will be flipped to "​1"​.
 +
 +<​code>​
 +# Set the traffic threshold to 50GiB
 +SMRadius-FUP-Traffic-Threshold ​ :=  51200
 +</​code>​
 +
 +===== Hooks =====
 +
 +==== post_auth_hook ====
 +
 +Runs at the post authentication stage.
 +
 +==== post_acct_hook ====
 +
 +Runs at the post accounting stage.