PortaSwitch® Handbook:
Broadband Internet, WiFi and IPTV Services, May 2011
Maintenance Release 23
V1.23.4
Please address your comments and suggestions to: Sales Department,
PortaOne, Inc. Suite #408, 2963 Glen Drive, Coquitlam, BC, V3B 2P7
Canada.
Changes may be made periodically to the information in this publication.
The changes will be incorporated in new editions of the guide. The
software described in this document is furnished under a license
agreement, and may be used or copied only in accordance with the terms
thereof. It is against the law to copy the software on any other medium,
except as specifically provided in the license agreement. The licensee may
make one copy of the software for backup purposes. No part of this
publication may be reproduced, stored in a retrieval system, or transmitted
in any form or by any means, electronic, mechanical, photocopied,
recorded or otherwise, without the prior written permission of PortaOne
Inc.
The software license and limited warranty for the accompanying products
are set forth in the information packet supplied with the product, and are
incorporated herein by this reference. If you cannot locate the software
license, contact your PortaOne representative for a copy.
All product names mentioned in this manual are for identification
purposes only, and are either trademarks or registered trademarks of their
respective owners.
This document provides PortaBilling® users with step-by-step
instructions and examples for setting up various prepaid and postpaid
services on a VoIP network.
Where to get the latest version of this guide
The hard copy of this guide is updated at major releases only, and does
not always contain the latest material on enhancements occurring between
minor releases. The online copy of this guide is always up to date, and
integrates the latest changes to the product. You can access the latest copy
of this guide at: www.portaone.com/support/documentation/
Conventions
This publication uses the following conventions:
Commands and keywords are given in boldface
Terminal sessions, console screens, or system file names are displayed
in fixed width font
The exclamation mark draws your attention to important information or
actions.
PortaSwitch® Handbook: Converged Services
NOTE: Notes contain helpful suggestions about or references to materials not
contained in this manual.
Timesaver means that you can save time by taking the action described
in the paragraph.
Tips provide information that might help you solve a problem.
Trademarks and Copyrights
PortaBilling®, PortaSIP®, PortaUM® and PortaSwitch® are registered
trademarks of PortaOne, Inc.
Prepaid WiFi services enable Internet telephony service providers
(ITSP) to offer wireless access services that customers can pay for in
advance.
The market for prepaid services includes tourists, immigrant
communities, mobile populations such as military personnel, and
people with limited credit histories. These users can all gain immediate
access to WiFi services at key locations such as hotels, cafes by using
prepaid WiFi cards (“access codes”) purchased at supermarkets and
other types of retail outlets. Prepaid WiFi access is a single “purchase”
transaction – so at the moment of the authorization all available funds
are withdrawn from the account and converted into the WiFi access
time.
In an ITSP internal network infrastructure, prepaid services are
implemented through a debit card application and work in conjunction
with the following:
Mikrotik RouterBoard 532 with RouterOS 2.9 installed
PortaBilling®
This combination of services enables a carrier to authorize prepaid WiFi
access and debit individual user accounts in real time.
Customer interaction:
Customer selects the WiFi network
Customer clicks “Connect”
Customer opens web browser
Customer opens WiFi gateway authorization page
Customer enters the login and password
Customer starts working
Open the IP tab, choose DHCP Client and then at the window click the
“+” button. Assign a new DHCP Client port using the Interface
dropdown box and click OK.
Flags: X – disabled, D – dynamic, R - running
# NAME TYPE RX-RATE TX_RATE MTU
0 R ether1 ether 0 0 1500
1 R ether2 ether 0 0 1500
2 R ether3 ether 0 0 1500
3 R wlan1 wlan 0 0 1500
[admin@Mikrotik] >
[admin@Mikrotik] > /interface wireless print
Flags: X – disabled, R – running
0 name="wlan1" mtu=1500 mac-address=00:0C:42:05:7A:B6 arp=enabled
Print the following page and use it to check off the operations you have
completed while performing system setup according to the instructions in
this chapter. Please be sure to perform all of the operations (all of the
boxes must be checked), otherwise the service will not work.
Operation
General configuration
Enter company data under My Company. [ ]
Specify a base currency. [ ]
For any other currency you plan to use, specify the exchange rate
source and define exchange rates.
Create a symbolic destination WiFi. [ ]
Network configuration
Add node on the web.
Configure your gateway. [ ]
Rating configuration (Vendor)
Create a tariff A, which describes your termination costs. [ ]
Insert rates in tariff A for a symbolic WiFi destination. [ ]
Create a vendor. [ ]
Create a connection for this vendor with the Wi-Fi service type,
using tariff A.
Rating configuration (Customer)
Create a tariff B, which will be applied to prepaid WiFi users. [ ]
Insert rates in tariff B for a symbolic WiFi destination. [ ]
Create your WiFi product. [ ]
Create one rating entry in account’s product, using the node you
created and tariff B.
Account provisioning
Create a retail customer who owns the WiFi cards. [ ]
Generate a batch of accounts for this customer. [ ]
Testing
Mikrotik Configuration. [ ]
TIP: When the system has just been installed, use username pb-root and
password pb-root to login.
The following steps are normally performed only once, after the system is
installed:
Visit MyCompany on the main menu. Enter information about your
company and set up a base currency. Naturally, this does not limit your
operations to this currency only. However, on cost / revenue reports and
the like different currencies will be converted to the one you specify here.
NOTE: Once you set up a base currency it cannot be changed. If you make a mistake,
you will have to start with a new PortaBilling® environment.
From the main menu, choose Users and create login entries for users
who will be working with the system. It is not recommended that the
default PortaBilling® root user (pb-root) be used for any operations
other than initial set-up. Make sure you are able to login as the newlycreated user and change the password for the pb-root user.
If you plan to do billing in multiple currencies, define them and specify
exchange rates in Currencies section.
Create Destination
You need to create the same destination as the name of HOTSPOT
server you specified in step 7 above (Configure HOTSPOT server.) when
you set up your network components;
1. In the Rating section of Admin-Index, choose Destination.
2. Click on the
3. Fill in the required information. The country subdivision is optional.
You can use the Description column to store some extra information
about the destination.
This step is only required if you have not entered your gateways into the
system before. In this case, you must enter your gateways as nodes.
PortaBilling® requires some key information about your network
equipment such as IP address, Node ID, Radius shared secret, etc.
Prepaid WiFi Services
1. In the Networking section of the Admin-Index page, choose Nodes.
2. In the Node management window, click the
Add icon.
3. Fill in the New Node form:
oNode Name – A short descriptive name for this node (will be
used in the select menus).
o Manufacturer - Select Mikrotik.
o Type – VoIP node type; select ROUTER.
o Node ID – Mikrotik server host name (recommended
o Auth. Translation rule – Leave this empty for now; see the
o RTP Proxying – Leave the default selection (Optimal); this
o Radius Client – Make sure this check-box is enabled, since the
o Radius Key – Enter the RADIUS secret key you have specified
o Radius Source IP – See the Node ID, NAS IP address, and Radius
o POD Server – This checkbox relates to ISP billing. Leave it
4. Click
5. Repeat steps 2-4 until all of your nodes have been entered.
Prepaid WiFi Services
Translation Rules section of the PortaBilling Administrator
Guide.
parameter is not used for the WiFi Internet access service.
gateway (node) must be able to communicate with PortaBilling
via RADIUS.
in the configuration of the gateway.
source IP section of the PortaBilling Administrator Guide.
Unless your gateway has multiple network interfaces, the value
here should be the same as the NAS-IP-Address.
unchecked for now.
Save&Close.
Create a Vendor Tariff
The tariff is a single price list for the use of WiFi services. To provide
WiFi services successfully, the following tariff should be created:
o A tariff with the termination costs for each termination partner
you have; these tariffs are created as “Applied to: Vendor”.
To create the required tariff, follow the next steps:
1. In the Rating section of Admin-Index, choose Tariffs.
2. On the Tariff Management page, choose Add.
3. Fill in the Add Tariff form:
o Name - A short name for the tariff object; this is the name you
o Currency – Indicates the currency, in which the vendor charges
will then see in the select menus.
you.
Prepaid WiFi Services
NOTE: The currency for the tariff may be chosen only once, and cannot be changed
later.
o Applied To – Choose Vendor in the Applied To select menu.
o Routing – Clear the check-box Routing.
o Service – Choose Wi-Fi here.
o Default Off-peak Period – If you do not differentiate between
o Short Description – A short tariff description.
o Description – An extended tariff description.
4. Click
Enter Rates
Rates are per-destination prices. Please refer to the Call Billing Parameters
section in the PortaBilling Administrator Guide for more information
on billing parameters.
Managing Rates Online
peak and off-peak rates, just choose Not defined; otherwise,
select one of the previously defined off-peak periods.
Save.
Managing rates online is very convenient for maintaining existing rate
tables, as well as for reference purposes. For new price lists or major
updates, an offline method is better.
o Off-peak Price Next – per-minute price for next interval for
NOTE: Off-peak fields appear only if an off-peak period has been defined for the
tariff.
o Effective From – If you want this rate to take effect sometime in
NOTE: When using the calendar, you can specify that the date you are entering is in a
different time zone than your present one. PortaBilling® will then automatically adjust
the time.
o Rate Formula Wizard – launches the wizard for creating a
o Payback Rate, Hidden, Forbidden or Discontinued flags are
4. Click the
of the row.
Prepaid WiFi Services
off-peak time.
the future, you can either type in a date manually, or use the
calendar (click the DD-MM-YYYY link).
custom rating formula
optional.
Save button in the toolbar, or the icon on the left side
Create Vendors
This step is only required if you have not entered information about your
vendors into the system before. Vendors are your termination partners
who will charge you for providing WiFi services.
1. In the Participants section of the Admin interface, choose Vendors.
Connections are points at which data leave or enter a network and are
directed to or from vendors, whereby costing occurs.
1. In the Participants section of the admin interface, choose Vendors.
2. Click on the Connections icon next to the vendor name.
Prepaid WiFi Services
3. Press Add to add a new connection.
4. Fill in the connection information. In the Service Type drop-down
box, select Wi-Fi. In the Node drop-down box, choose the Mikrotik
WiFi router which you previously added as a node. Choose the tariff
which defines your termination costs for this connection / vendor.
Description and Capacity are mandatory for all connection types.
5. Click
6. Repeat steps 3-6 to add more connections to the same vendor, then
click Close in order to exit to the Vendor Management screen.
7. Repeat steps 2-7 to add connections for other vendors.
Save.
Create a Customer Tariff
To provide WiFi services successfully, one more tariff should be created:
o A tariff for each account’s billing scheme, these tariffs are created
as “Applied to: Customer”.
To create the required tariff, follow the next steps:
1. In the Rating section of Admin-Index, choose Tariffs.
2. On the Tariff Management page, choose Add.
3. Fill in the New Tariff form (please refer to the Create a Vendor Tariff
section above for a detailed description of the available tariff
attributes). In the Applied To select menu, choose “Customer”, as
this tariff will be used to charge your WiFi customers. Then choose
“Administrator Only” in the Managed By select menu (this option
is only visible after you select Applied To: Customer above). In the
Service select menu, choose Wi-Fi.
1. On the Tariff Management page you will see a list of available tariffs.
Click the Rates icon before the name of the tariff. When you are in
Tariff Management for a particular tariff, click on Rates in the
toolbar.
2. In the Edit Rates screen, click Add.
3. Fill in the required information (please refer to the Enter Rates for
Vendor Tariff section above for a detailed description of the available
rate attributes).
4. Click the
of the row.
Save button in the toolbar, or the icon on the left side
Create a Product
Account for accessing your prepaid WiFi services will be issued for a
specific product. Products are a powerful feature that defines different
ways to bill an account. Product definition is always done in two steps:
product definition and creation of rating list.