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

Chapter 5. Adding Authentication with MySQL

In this chapter we will learn how to use several database back-ends to authenticate SIP requests and provide persistence of data such as location and alias tables. Primarily, we will do everything with MySQL. This chapter is divided in two parts. In the first one we will learn how to implement authentication and in the second one we will learn how to deal with calls in each direction.

By the end of this chapter you will be able to:

  • Configure MySQL to authenticate SIP devices

  • Use the openserctl utility for basic operations such as adding and removing users

  • Change the openser.cfg script to configure MySQL authentication

  • Implement persistence for the subscriber table

  • Implement persistence for the location tables

  • Restart the server without loosing the location records

  • Deal correctly with inbound-to-inbound, inbound-to-outbound, outbound-to-inbound, and outbound-to-outbound sessions.

  • Deal correctly with CANCEL Requests.