Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
usage [2013-12-06 15:04] – rspencer | usage [2016-09-19 17:25] – [SMRadius-Evaluate] wikiadmin | ||
---|---|---|---|
Line 26: | Line 26: | ||
</ | </ | ||
- | ===== Non-standard Core Attributes ===== | + | ====== Non-standard Core Attributes |
A listing of non standard attributes and their functions in SMRadius. These attributes are listed under the areas in SMRadius that make use of them. | A listing of non standard attributes and their functions in SMRadius. These attributes are listed under the areas in SMRadius that make use of them. | ||
- | ==== Capping ==== | + | ===== Capping |
* [[mod_feature_capping.pm|SMRadius-Capping-Traffic-Limit]] | * [[mod_feature_capping.pm|SMRadius-Capping-Traffic-Limit]] | ||
Line 37: | Line 37: | ||
* [[mod_feature_capping.pm|SMRadius-Config-Capping-Uptime-Multiplier]] | * [[mod_feature_capping.pm|SMRadius-Config-Capping-Uptime-Multiplier]] | ||
- | ==== Validity ==== | + | ===== Auto-Topups ===== |
+ | |||
+ | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Traffic-Enabled]] | ||
+ | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Traffic-Amount]] | ||
+ | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Traffic-Limit]] | ||
+ | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Traffic-Notify]] | ||
+ | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Traffic-NotifyTemplate]] | ||
+ | |||
+ | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-Enabled]] | ||
+ | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-Amount]] | ||
+ | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-Limit]] | ||
+ | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-Notify]] | ||
+ | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-NotifyTemplate]] | ||
+ | |||
+ | ===== Validity ==== | ||
* [[mod_feature_validity.pm|SMRadius-Validity-ValidFrom]] | * [[mod_feature_validity.pm|SMRadius-Validity-ValidFrom]] | ||
Line 44: | Line 58: | ||
- | ==== Config ==== | + | ===== Config |
* [[mod_config_sql.pm|SMRadius-Config-Secret]] | * [[mod_config_sql.pm|SMRadius-Config-Secret]] | ||
Line 51: | Line 65: | ||
* [[mod_config_sql.pm|SMRadius-Config-Filter-Reply-VAttribute]] | * [[mod_config_sql.pm|SMRadius-Config-Filter-Reply-VAttribute]] | ||
- | ==== Core ==== | + | ====== Core ====== |
+ | |||
+ | ===== SMRadius-Evaluate ===== | ||
+ | Evaluate and set an attribute / attributes based on the results of the evaluation. Syntax: TEST CASE ? TRUE_ATTRIBUTE : FALSE. | ||
+ | |||
+ | Lets take a real life example: | ||
+ | |||
+ | 1. For traffic under 80000Mbyte, we set an attribute | ||
+ | < | ||
+ | SMRadius-Evaluate ||+= SMRadius_Capping_TotalDataUsage < 80000 ? [14988: | ||
+ | </ | ||
+ | |||
+ | 2. For traffic above 80000Mbyte, but below 130000Mbyte, | ||
+ | < | ||
+ | SMRadius-Evaluate ||+= SMRadius_Capping_TotalDataUsage > 80000 && SMRadius_Capping_TotalDataUsage < 130000 ? [14988: | ||
+ | </ | ||
+ | |||
+ | 3. For traffic above 130000Mbyte, | ||
+ | < | ||
+ | SMRadius-Evaluate ||+= SMRadius_Capping_TotalDataUsage > 130000 ? [14988: | ||
+ | </ | ||
+ | |||
+ | ===== SMRadius-Peer-Address ===== | ||
+ | |||
+ | Allows the admin to specify an address that the peer address must match in order to be authorized. The user / group attribute SMRadius-Peer-Address will be checked against the peer address of the client device. | ||
+ | |||
+ | < | ||
+ | SMRadius-Peer-Address | ||
+ | </ | ||
+ | |||
+ | ===== SMRadius-Disable-WebUITopup ===== | ||
+ | |||
+ | Allows one to build web ui's that ignore topups, this attribute is not used internally at all. | ||
+ | |||
+ | ===== SMRadius-Username-Transform ===== | ||
+ | |||
+ | <btn type=" | ||
- | * __SMRadius-Username-Transform__ | + | Transforms a username from the supplied username to the configured username. |
- | * Transforms a username from the supplied username to the configured username | + | |
- | * < | + | |
- | SMRadius-Username-Transform | + | |
- | * __SMRadius-Evaluate__ | + | < |
- | * Evaluate and set an attribute / attributes based on the results of the evaluation. Syntax: TEST CASE ? TRUE_ATTRIBUTE : FALSE | + | # Transfrom user@example.net to user@this.example.net |
+ | SMRadius-Username-Transform | ||
+ | </ | ||
- | * __SMRadius-Peer-Address__ | ||
- | * Allows the admin to specify an address that the peer address must match in order to be authorized. The user / group attribute SMRadius-Peer-Address will be checked against the peer address of the client device. | ||
- | * < | ||
- | * __SMRadius-Disable-WebUITopup__ | ||
- | * Allows one to build web ui's that ignore topups, this attribute is not used internally at all. |