Database Deployment
After installing your OpenSIPS, most likely you will need to also deploy a database that you could use for various reasons ( DB user authentication, persistent registrations, dialogs, etc ).
You can deploy the opensips database using the opensips-cli tool. Before you do that, you should install it.
Configuring OpenSIPS CLI
Section titled “Configuring OpenSIPS CLI”Open your OpenSIPS CLI configuration file and specify the following parameters:
database_schema_path- (defaults to/usr/share/opensips/) set it to[Install_Path]/share/opensips/database_url- the URL to connect to your database (if not specified, you will be prompted for it during deploy)database_name- (defaults toopensips) the database to usedatabase_modules- (defaults to standard modules) the modules you want to deploy.
You can find more information about the OpenSIPS CLI tool configuration here.
Creating the Database
Section titled “Creating the Database”In order to create the database_name database that you have provisioned above, run
opensips-cli -x database createLater, if you decide to add a new module, for example presence, simply call:
opensips-cli -x database add presenceYou can also specify a different name for the database, for example opensips_test, using:
opensips-cli -x database create opensips_test