Module: kamailio
Branch: 5.2
Commit: b7de33e0a67e18fdb4e9d4cb11946dff77410e44
URL: https://github.com/kamailio/kamailio/commit/b7de33e0a67e18fdb4e9d4cb11946df…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-01-24T17:01:26+01:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/ctl/README
---
Diff: https://github.com/kamailio/kamailio/commit/b7de33e0a67e18fdb4e9d4cb11946df…
Patch: https://github.com/kamailio/kamailio/commit/b7de33e0a67e18fdb4e9d4cb11946df…
---
diff --git a/src/modules/ctl/README b/src/modules/ctl/README
index 2eb67adbc3..e30377976d 100644
--- a/src/modules/ctl/README
+++ b/src/modules/ctl/README
@@ -158,7 +158,7 @@ $ kamcmd ps
Example 1.2. Set binrpc parameter
loadmodule "ctl"
# optional listen addresses, if no one is specified,
-# ctl will listen on unixs:/tmp/ser_ctl
+# ctl will listen on unixs:/tmp/kamailio_ctl
modparam("ctl", "binrpc", "unix:/var/run/kamailio/kamailio_ctl") # default
modparam("ctl", "binrpc", "udp:localhost:2046")
@@ -173,7 +173,8 @@ modparam("ctl", "binrpc", "udp:*:3012") # udp any , port 3012
3.2. binrpc_buffer_size (integer or string)
- the size of the internal buffer.
+ The size of the internal buffer used for printing elements of the RPC
+ response (e.g., internal RPC printf()). The value is given in bytes.
Default: 1024.
@@ -218,18 +219,19 @@ modparam("ctl", "group", 100)
fifo used for the obsolete fifo protocol. The fifo protocol can be run
over a real fifo, over UDP or over TCP. Format:
[protocol:]path|address. If no protocol is specified the default is
- "fifo". Examples: "fifo:/tmp/ser_fifo", "/tmp/ser_fifo2", "udp:*:2050",
- "tcp:localhost:2050". For more details on the UDP and TCP formats see
- binrpc. Multiple fifos or fifo transports can be used in the same time
- (just by setting the fifo parameter multiple times in the config).
+ "fifo". Examples: "fifo:/tmp/kamailio_fifo", "/tmp/kamailio_fifo2",
+ "udp:*:2050", "tcp:localhost:2050". For more details on the UDP and TCP
+ formats see binrpc. Multiple fifos or fifo transports can be used in
+ the same time (just by setting the fifo parameter multiple times in the
+ config).
Default: not set (no fifo will be used).
Example 1.7. Set fifo parameter
...
# old fifo support
-modparam("ctl", "fifo", "fifo:/tmp/ser_fifo") # classic fifo
-modparam("ctl", "fifo", "/tmp/ser_fifo2")
+modparam("ctl", "fifo", "fifo:/tmp/kamailio_fifo") # classic fifo
+modparam("ctl", "fifo", "/tmp/kamailio_fifo2")
modparam("ctl", "fifo", "udp:*:2050") # fifo protocol over udp
modparam("ctl", "fifo", "tcp:*:2050") # fifo over tcp
...
Module: kamailio
Branch: 5.2
Commit: fc63e970304ba74b7f6800176b0a9b41b7b39f52
URL: https://github.com/kamailio/kamailio/commit/fc63e970304ba74b7f6800176b0a9b4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-01-24T16:54:44+01:00
kamdbctl: split create user and grant access statements for mysql
- MySQL 8 doesn't support all in one statement
(cherry picked from commit c0879add55bef77703f2259f224b4a1f954cd8bf)
---
Modified: utils/kamctl/kamdbctl.mysql
---
Diff: https://github.com/kamailio/kamailio/commit/fc63e970304ba74b7f6800176b0a9b4…
Patch: https://github.com/kamailio/kamailio/commit/fc63e970304ba74b7f6800176b0a9b4…
---
diff --git a/utils/kamctl/kamdbctl.mysql b/utils/kamctl/kamdbctl.mysql
index 6103705bc0..e8f8d2e861 100644
--- a/utils/kamctl/kamdbctl.mysql
+++ b/utils/kamctl/kamdbctl.mysql
@@ -160,8 +160,10 @@ kamailio_db_grant () # pars: <database name>
minfo "granting privileges to database $1 ..."
# Users: kamailio is the regular user, kamailioro only for reading
- sql_query "" "GRANT ALL PRIVILEGES ON $1.* TO '${DBRWUSER}'@'$DBHOST' IDENTIFIED BY '$DBRWPW';
- GRANT SELECT ON $1.* TO '${DBROUSER}'@'$DBHOST' IDENTIFIED BY '$DBROPW';"
+ sql_query "" "CREATE USER '${DBRWUSER}'@'$DBHOST' IDENTIFIED BY '$DBRWPW';
+ GRANT ALL PRIVILEGES ON $1.* TO '${DBRWUSER}'@'$DBHOST';
+ CREATE USER '${DBROUSER}'@'$DBHOST' IDENTIFIED BY '$DBROPW';
+ GRANT SELECT ON $1.* TO '${DBROUSER}'@'$DBHOST';"
if [ $? -ne 0 ] ; then
merr "granting privileges to database $1 failed!"
@@ -169,8 +171,10 @@ kamailio_db_grant () # pars: <database name>
fi
if [ "$DBHOST" != "localhost" ] ; then
- sql_query "" "GRANT ALL PRIVILEGES ON $1.* TO '$DBRWUSER'@'localhost' IDENTIFIED BY '$DBRWPW';
- GRANT SELECT ON $1.* TO '$DBROUSER'@'localhost' IDENTIFIED BY '$DBROPW';"
+ sql_query "" "CREATE USER '$DBRWUSER'@'localhost' IDENTIFIED BY '$DBRWPW';
+ GRANT ALL PRIVILEGES ON $1.* TO '$DBRWUSER'@'localhost';
+ CREATE USER '$DBROUSER'@'localhost' IDENTIFIED BY '$DBROPW';
+ GRANT SELECT ON $1.* TO '$DBROUSER'@'localhost';"
if [ $? -ne 0 ] ; then
merr "granting localhost privileges to database $1 failed!"
exit 1
@@ -178,8 +182,10 @@ kamailio_db_grant () # pars: <database name>
fi
if [ ! -z "$DBACCESSHOST" ] ; then
- sql_query "" "GRANT ALL PRIVILEGES ON $1.* TO '$DBRWUSER'@'$DBACCESSHOST' IDENTIFIED BY '$DBRWPW';
- GRANT SELECT ON $1.* TO '$DBROUSER'@'$DBACCESSHOST' IDENTIFIED BY '$DBROPW';"
+ sql_query "" "CREATE USER '$DBRWUSER'@'$DBACCESSHOST' IDENTIFIED BY '$DBRWPW';
+ GRANT ALL PRIVILEGES ON $1.* TO '$DBRWUSER'@'$DBACCESSHOST';
+ CREATE USER '$DBROUSER'@'$DBACCESSHOST' IDENTIFIED BY '$DBROPW';
+ GRANT SELECT ON $1.* TO '$DBROUSER'@'$DBACCESSHOST';"
if [ $? -ne 0 ] ; then
merr "granting access host privileges to database $1 failed!"
exit 1
Module: kamailio
Branch: 5.2
Commit: 114cda75a593a5f1119bc8b5b545b4560416b41c
URL: https://github.com/kamailio/kamailio/commit/114cda75a593a5f1119bc8b5b545b45…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-01-24T16:47:21+01:00
ctl: docs - more infor about binrpc_buffer_size modparam
- replaced ser with kamailio in a few examples
(cherry picked from commit c9070600af1b7993b003964b5c58db3391d50f60)
(cherry picked from commit 4ca6ad00eb71ea76dacf71c6126a4fe853d898c9)
---
Modified: src/modules/ctl/doc/ctl_params.xml
---
Diff: https://github.com/kamailio/kamailio/commit/114cda75a593a5f1119bc8b5b545b45…
Patch: https://github.com/kamailio/kamailio/commit/114cda75a593a5f1119bc8b5b545b45…
---
diff --git a/src/modules/ctl/doc/ctl_params.xml b/src/modules/ctl/doc/ctl_params.xml
index d94efdd6ca..820327780b 100644
--- a/src/modules/ctl/doc/ctl_params.xml
+++ b/src/modules/ctl/doc/ctl_params.xml
@@ -73,7 +73,7 @@
<programlisting>
loadmodule "ctl"
# optional listen addresses, if no one is specified,
-# ctl will listen on unixs:/tmp/ser_ctl
+# ctl will listen on unixs:/tmp/kamailio_ctl
modparam("ctl", "binrpc", "unix:/var/run/&kamailiobinary;/&kamailiobinary;_ctl") # default
modparam("ctl", "binrpc", "udp:localhost:2046")
@@ -92,7 +92,8 @@ modparam("ctl", "binrpc", "udp:*:3012") # udp any , port 3012
<section id="binrpc_buffer_size">
<title><varname>binrpc_buffer_size</varname> (integer or string)</title>
<para>
- the size of the internal buffer.
+ The size of the internal buffer used for printing elements of the RPC
+ response (e.g., internal RPC printf()). The value is given in bytes.
</para>
<para>
Default: 1024.
@@ -167,7 +168,7 @@ modparam("ctl", "group", 100)
The fifo protocol can be run over a real fifo, over UDP or over TCP.
Format: [protocol:]path|address.
If no protocol is specified the default is "fifo".
- Examples: "fifo:/tmp/ser_fifo", "/tmp/ser_fifo2", "udp:*:2050",
+ Examples: "fifo:/tmp/kamailio_fifo", "/tmp/kamailio_fifo2", "udp:*:2050",
"tcp:localhost:2050".
For more details on the UDP and TCP formats see
<varname>binrpc</varname>.
@@ -183,8 +184,8 @@ modparam("ctl", "group", 100)
<programlisting>
...
# old fifo support
-modparam("ctl", "fifo", "fifo:/tmp/ser_fifo") # classic fifo
-modparam("ctl", "fifo", "/tmp/ser_fifo2")
+modparam("ctl", "fifo", "fifo:/tmp/kamailio_fifo") # classic fifo
+modparam("ctl", "fifo", "/tmp/kamailio_fifo2")
modparam("ctl", "fifo", "udp:*:2050") # fifo protocol over udp
modparam("ctl", "fifo", "tcp:*:2050") # fifo over tcp
...