O'Reilly logo

Building Telephony Systems with OpenSIPS - Second Edition by Bogdan-Andrei Iancu, Flavio E. Goncalves

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Analysis of the opensips.cfg file

Now the configuration is ready to authenticate the REGISTER transactions. We can save the AOR in the location table to achieve persistence. This allows us to restart the server without losing the AOR records and affecting UACs. The configuration file will show the modules that have been loaded, their respective parameters, and the main sections of the code related to this chapter.

To make the authentication work, it is necessary to load the following modules:

loadmodule "db_mysql.so"
loadmodule "auth.so"
loadmodule "auth_db.so"

The MySQL support is added easily by including db_mysql.so in the list of loaded modules. MySQL should be loaded before the other modules. The authentication capability is provided by the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required