Working with RADIUS attributes
Public access interface ASP functions and variables
15-90
client_account_status_remaining_output_octets: Amount of traffic the user can still
upload.
client_account_status_remaining_total_octets: Total amount of traffic the user can
still upload or download.
client_account_status_active_sessions: Number of sessions active on this account.
Subscription plan information
LoadSubscriptionPlanInformation(subscription_plan)
This function initializes a set of variables that provide information on the specified
subscription plan.
ASP variables
subscription_plan_name: Name of the plan.
subscription_plan_id: ID which uniquely identifies each subscription plan.
subscription_plan_fee: Subscription plan cost.
subscription_plan_tax: Subscription plan tax. Calculated based on the subscription
plan cost and the configured tax rate.
subscription_plan_total: Total subscription plan charge.
subscription_plan_description: Description of the plan.
GetFirstSubscriptionPlan()
The function returns the first subscription plan name (as a string) configured on the
controller for which billing is enabled.
Example
var plan;
for (plan = GetFirstSubscriptionPlan(); plan != ""; plan = GetNextSubscriptionPlan(plan)) {
LoadSubscriptionPlanInformation(plan);
}
GetNextSubscriptionPlan(plan_name)
Returns the next subscription plan name that follows the specified plan_name. If
plan_name is the last plan, an empty string is returned.
Example
var plan;
for (plan = GetFirstSubscriptionPlan(); plan != ""; plan = GetNextSubscriptionPlan(plan)) {
LoadSubscriptionPlanInformation(plan);
}