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

How CDRTool Rates a Call


The software rates the call instantaneously, based on a rating plan, from multiple data sources such as Asterisk, Cisco, and OpenSER. CDRTool use the RADIUS database, more specifically the radacct table that contains duration, calling and called party, and media information (if you are using MediaProxy). The tool calculates the price of the session in real time and saves it to the radacct table.

Rates are directly related to profiles linked to the time of the day, day of week, and holidays. A call can span multiple profiles and be correctly rated. Each customer can be assigned a dedicated rating plan.

The CDRTool rating follows this path:

Step 1: Determination of the billing party

CDRTool identifies the rating plans based on the following order:

  • SIP account user@domain

  • SIP domain of the SIP account

  • Source IP of the session

  • Default

Note

To do this it uses the field radacct.username.

Step 2: Determination of the destination

CDRTool identifies the destination used in the rating...