Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
usage [2016-09-19 17:22] – [Core] wikiadmin | usage [2016-09-19 19:50] (current) – [Auto-Topups] wikiadmin | ||
---|---|---|---|
Line 44: | Line 44: | ||
* [[mod_feature_capping.pm|SMRadius-AutoTopup-Traffic-Notify]] | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Traffic-Notify]] | ||
* [[mod_feature_capping.pm|SMRadius-AutoTopup-Traffic-NotifyTemplate]] | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Traffic-NotifyTemplate]] | ||
+ | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Traffic-Threshold]] | ||
* [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-Enabled]] | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-Enabled]] | ||
Line 50: | Line 51: | ||
* [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-Notify]] | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-Notify]] | ||
* [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-NotifyTemplate]] | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-NotifyTemplate]] | ||
+ | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-Threshold]] | ||
===== Validity ==== | ===== Validity ==== | ||
Line 70: | Line 72: | ||
Evaluate and set an attribute / attributes based on the results of the evaluation. Syntax: TEST CASE ? TRUE_ATTRIBUTE : FALSE. | 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: | 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: | SMRadius-Evaluate ||+= SMRadius_Capping_TotalDataUsage > 80000 && SMRadius_Capping_TotalDataUsage < 130000 ? [14988: | ||
+ | </ | ||
+ | |||
+ | 3. For traffic above 130000Mbyte, | ||
+ | < | ||
SMRadius-Evaluate ||+= SMRadius_Capping_TotalDataUsage > 130000 ? [14988: | SMRadius-Evaluate ||+= SMRadius_Capping_TotalDataUsage > 130000 ? [14988: | ||
</ | </ | ||
Line 86: | Line 99: | ||
===== SMRadius-Disable-WebUITopup ===== | ===== SMRadius-Disable-WebUITopup ===== | ||
- | Allows one to build web ui's that ignore topups, this attribute is not used internally | + | Allows one to build web ui's that ignore topups, this attribute is not used internally. |
===== SMRadius-Username-Transform ===== | ===== SMRadius-Username-Transform ===== |