Copyright © 2006 voice-system.ro
|Revision $Revision: 4521 $||$Date: 2008-07-29 18:23:00 +0200 (Tue, 29 Jul 2008) $|
Table of Contents
List of Examples
This is a module which provides MySQL connectivity for OpenSIPS. It implements the DB API defined in OpenSIPS.
The following modules must be loaded before this module:
No dependencies on other OpenSIPS modules.
Time interval to send ping messages to MySQL server in order to keep the connection open.
Default value is 300 (5 min).
Time interval after that an connection attempt, read or write request is aborted. The value counts three times, as several retries are done from the driver before it gives up.
The read timeout parameter is ignored on driver versions prior to “5.1.12”, “5.0.25” and “4.1.22”. The write timeout parameter is ignored on version prior to “5.1.12” and “5.0.25”, the “4.1” release don't support it at all.
Default value is 2 (6 sec).
Because it dependes on an external library, the mysql module is not compiled and installed by default. You can use one of the next options.
- edit the "Makefile" and remove "db_mysql" from "excluded_modules" list. Then follow the standard procedure to install OpenSIPS: "make all; make install".
- from command line use: 'make all include_modules="db_mysql"; make install include_modules="db_mysql"'.