Book Image

Building Telephony Systems with OpenSER

Book Image

Building Telephony Systems with OpenSER

Overview of this book

Table of Contents (18 chapters)
Building Telephony Systems with OpenSER
Credits
About the Author
About the Reviewers
Preface
6
Building the User Portal with SerMyAdmin
Index

Installation of FreeRADIUS and CDRTool


The installation of the FreeRADIUS server is unquestionably a challenge. Several steps have to be strictly followed to have a working configuration. To do this we will divide the installation in five steps:

  1. Package and dependencies installation

  2. Database configuration

  3. FreeRADIUS configuration

  4. Radiusclient-ng installation

  5. OpenSER configuration

Packages and Dependencies

For FreeRADIUS, freeradius-mysql and CDRTool install the packages below:

apt-get install freeradius freeradius-mysql 

Create and Configure the Database for the Radius server

Step 1: Create the database for the FreeRADIUS server.

mysqladmin -u root –p create radius

Note

Type the root password whenever required.

Step 2: Create the tables below to support the RADIUS server.

cd /usr/share/doc/freeradius/examples
gunzip mysql.sql.gz 
mysql -u root radius <mysql.sql

Step 3: Apply the RADIUS and radacct patches that comes together with CDRTool. The FREERADIUS patch fixes a problem with accounting type...