MSM7xx Controllers Configuration Guide v6.4.0

client_account_status_remaining_input_octets: Amount of traffic the user can still
download.
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);
}
Other
AssignBillingRecordId()
Use this function to reserve a billing record ID. If this function returns 0, it means that the payment
system has been halted. Any subscription-related activities should not be attempted until this
function returns a non-zero value. See Suspend payment system when log is full of queued
records).
Example
var billingRecordId = AssignBillingRecordId();
if (billingRecordId == 0) {
<p>The service is temporarily unavailable.Please try again later.</p>
}
502 Working with RADIUS attributes