Installing MySQL support

To save the users and location information in a database, OpenSIPS will need to be configured with a database such as MySQL. Before you proceed, it is important to verify that you have MySQL installed and the opensips-mysql module compiled and installed.

In Chapter 3, Installing OpenSIPS, we compiled OpenSIPS with MySQL support. Check the lib directory for the db_mysql.so module.

Some additional tasks have to be done before you can use OpenSIPS with MySQL.

The following are the step-by-step instructions to create a database using the opensipsdbctl command and change the opensips.cfg file to allow the authentication of the REGISTER and INVITE requests:

  1. Verify the existence of the db_mysql.so module in the directory:

    For 32 bit: ...

Get Building Telephony Systems with OpenSIPS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.