Public Spot / XML interface |
The communication between the XML interface and external gateway is processed as follows:
The Public Spot forwards the MAC address of the requesting Public Spot client to the external gateway. To implement this, navigate to Public-Spot-Module > Page-Table, set the Type to "Redirect" and suffix the URL with the parameter ?myvar=%m.
Example: http://192.168.1.1/?myvar=%m
In this case, myvar is a freely selectable variable. The variable %m is vital here, as the Public Spot replaces this with the client's MAC address when forwarding the request.
Variable | Meaning |
---|---|
%s | SSID name |
%v | Source VLAN |
%i | Interface (applies to LAN, WLAN, WLC-tunnel) |
%t | Routing tag |
%m | MAC address of the client |
%c | MAC address of the Public Spot gateway |
%r | Remote IP (client) |
%p | Local IP (Public Spot gateway) |
%o | Original URL called by the client |
%n | Device name of the Public Spot gateway |
%e | Serial number of the Public Spot gateway |
%l | Host name of the Public Spot gateway |
%0-9 | Inserts a single number between 0 and 9 |
%% | Inserts a single percent character |
The Public Spot's XML interface analyses this file and initiates the corresponding actions. In the case of a login request, the XML interface inserts the user and the corresponding MAC address into the list of logged-in Public Spot users. In the case of a logout request, the XML interface removes the user from this list again. At the same time, the XML interface confirms the request by sending a corresponding XML file to the hotspot gateway.
In order for the Public Spot to be able to process the instructions in the XML file, a special administrator must be set up on the device who has the function right "Public-Spot -XML-interface". This hotspot gateway logs in to the Public Spot with this admin account.
While the user is logged in to the Public Spot, the XML interface and hotspot gateway can exchange status information about the current session in the form of XML files.
If the user has exhausted his online quota, the hotspot gateway will send a stop command to the XML interface, and then the Public Spot locks further access for that user. The XML interface also confirms that the login is blocked by sending the corresponding XML file to the hotspot gateway.
LANCOM Systems GmbH | A Rohde & Schwarz Company | Adenauerstr. 20/B2 | 52146 Wuerselen | Germany | E‑Mail info@lancom.de