|
@@ -28,6 +28,7 @@ Daniel-Constantin Mierla
|
|
|
3.1. ping_interval (integer)
|
|
|
3.2. timeout_interval (integer)
|
|
|
3.3. auto_reconnect (integer)
|
|
|
+ 3.4. insert_delayed (integer)
|
|
|
|
|
|
4. Functions
|
|
|
5. Installation
|
|
@@ -38,9 +39,10 @@ Daniel-Constantin Mierla
|
|
|
1.1. Set ping_interval parameter
|
|
|
1.2. Set timeout_interval parameter
|
|
|
1.3. Set auto_reconnect parameter
|
|
|
- 1.4. Set a my.cnf group in db_url parameter
|
|
|
- 1.5. Adding a kamailio group to my.cnf
|
|
|
- 1.6. Using [client] and specific group
|
|
|
+ 1.4. Set insert_delayed parameter
|
|
|
+ 1.5. Set a my.cnf group in db_url parameter
|
|
|
+ 1.6. Adding a kamailio group to my.cnf
|
|
|
+ 1.7. Using [client] and specific group
|
|
|
|
|
|
Chapter 1. Admin Guide
|
|
|
|
|
@@ -57,6 +59,7 @@ Chapter 1. Admin Guide
|
|
|
3.1. ping_interval (integer)
|
|
|
3.2. timeout_interval (integer)
|
|
|
3.3. auto_reconnect (integer)
|
|
|
+ 3.4. insert_delayed (integer)
|
|
|
|
|
|
4. Functions
|
|
|
5. Installation
|
|
@@ -89,6 +92,7 @@ Chapter 1. Admin Guide
|
|
|
3.1. ping_interval (integer)
|
|
|
3.2. timeout_interval (integer)
|
|
|
3.3. auto_reconnect (integer)
|
|
|
+ 3.4. insert_delayed (integer)
|
|
|
|
|
|
3.1. ping_interval (integer)
|
|
|
|
|
@@ -132,6 +136,18 @@ modparam("db_mysql", "timeout_interval", 2)
|
|
|
modparam("db_mysql", "auto_reconnect", 0)
|
|
|
...
|
|
|
|
|
|
+3.4. insert_delayed (integer)
|
|
|
+
|
|
|
+ If set to 1, all INSERT SQL queries will be sent to MySQL server as
|
|
|
+ INSERT DELAYED.
|
|
|
+
|
|
|
+ Default value is 0 (1 - on / 0 - off).
|
|
|
+
|
|
|
+ Example 1.4. Set insert_delayed parameter
|
|
|
+...
|
|
|
+modparam("db_mysql", "insert_delayed", 1)
|
|
|
+...
|
|
|
+
|
|
|
4. Functions
|
|
|
|
|
|
No function exported to be used from configuration file.
|
|
@@ -158,12 +174,12 @@ modparam("db_mysql", "auto_reconnect", 0)
|
|
|
* mysql://user:pass@[group]/db
|
|
|
* mysql://[group]/db
|
|
|
|
|
|
- Example 1.4. Set a my.cnf group in db_url parameter
|
|
|
+ Example 1.5. Set a my.cnf group in db_url parameter
|
|
|
...
|
|
|
modparam("usrloc", "db_url", "mysql://[kamailio]/kamailio)
|
|
|
...
|
|
|
|
|
|
- Example 1.5. Adding a kamailio group to my.cnf
|
|
|
+ Example 1.6. Adding a kamailio group to my.cnf
|
|
|
...
|
|
|
[kamailio]
|
|
|
socket = /path/to/mysql.sock
|
|
@@ -177,7 +193,7 @@ default-character-set = utf8
|
|
|
both your specific group and the client group, then the value is taken
|
|
|
from the last one.
|
|
|
|
|
|
- Example 1.6. Using [client] and specific group
|
|
|
+ Example 1.7. Using [client] and specific group
|
|
|
...
|
|
|
[client]
|
|
|
socket = /var/run/mysql/mysqld.sock
|