Hi there!
In Germany validation for hotspots using SMS is very popular.
The Guest-Sponsor-Feature does not work for this, because you have to validate using a link at at webpage.
So i just remove the password from the Reciept-Page and redirect using JavaScript the Login-Button to the Login-Page. The Password is sent by SMS as a Receipt-Action to the visitor_phone SMS number and then the SMS-valided user can login.
Everything fine so far.
The Question: How to limit the number of registrations a user can do?
The WiFi-Network for this customer is in public and anyone can abuse the registration by using it as often as he likes and everytime an SMS is sent out (spaming friends, e.g.)
Give them a try: this document describes a similar feature: Amigopod - AutoMACAuthAccount.pdf
But how to use such PHP-based Radius-Replies? Is it sill working with CPPM and CPPM-Guest?
My own idea - not working:
In Register-Page-Head i have inserted
{nwa_radius_query _method=GetCallingStationSessions _debug=1
callingstationid=$mac
from_time=86400
_assign=counter}
Counter-Value: <b>{$counter}</b><br>
and i get the number of valid sessions the device already has made the last 24 hours. Cool to invent, but useless for me, because this counts the number of valid logins and Radius-Accounting-Sessions and at this time there was no valid login so there is no Accounting.
Detailed Question:
So i just have to query the Guest-DB for the number of users created with attribute 'mac' = callingstationid and from_time=86400 . Similar to the above option. Or maybe much more smarter....
Ideas how to get this to work?
Kind Regards from
Folke