Module: kamailio
Branch: master
Commit: f012c525264ed05fec2acb4b3924d4b9a1cd3ab9
URL: https://github.com/kamailio/kamailio/commit/f012c525264ed05fec2acb4b3924d4b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-06-14T11:31:59+02:00
db_mysql: docs for opt_ssl_mode parameter
---
Modified: src/modules/db_mysql/doc/db_mysql_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/f012c525264ed05fec2acb4b3924d4b…
Patch: https://github.com/kamailio/kamailio/commit/f012c525264ed05fec2acb4b3924d4b…
---
diff --git a/src/modules/db_mysql/doc/db_mysql_admin.xml b/src/modules/db_mysql/doc/db_mysql_admin.xml
index 26e32d8d36..68deb56cab 100644
--- a/src/modules/db_mysql/doc/db_mysql_admin.xml
+++ b/src/modules/db_mysql/doc/db_mysql_admin.xml
@@ -182,6 +182,36 @@ modparam("db_mysql", "update_affected_found", 1)
</example>
</section>
</section>
+ <section id="db_mysql.p.opt_ssl_mode">
+ <title><varname>opt_ssl_mode</varname> (integer)</title>
+ <para>
+ Control how the connection to MySQL server is done in regards to SSL/TLS.
+ If set to 1, SSL/TLS mode is disabled.
+ </para>
+ <para>
+ The 'include/mysql.h' starting with MySQL 5.7.11 defines the values for
+ this option as enum: 'mysql_ssl_mode { SSL_MODE_DISABLED=1, SSL_MODE_PREFERRED,
+ SSL_MODE_REQUIRED, SSL_MODE_VERIFY_CA, SSL_MODE_VERIFY_IDENTITY}'.
+ </para>
+ <para>
+ Note: if the value of this parameter is 1, it enforces SSL_MODE_DISABLED,
+ any other value is passed to the mysql_options(), not checking if it is
+ defined.
+ </para>
+ <para>
+ <emphasis>
+ Default value is 0 (0 - off).
+ </emphasis>
+ </para>
+ <example>
+ <title>Set <varname>opt_ssl_mode</varname> parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("db_mysql", "opt_ssl_mode", 1)
+...
+</programlisting>
+ </example>
+ </section>
<section>
<title>Functions</title>
<para>
Module: kamailio
Branch: master
Commit: 1189d75511bad3fe235e207e72471770dedfa386
URL: https://github.com/kamailio/kamailio/commit/1189d75511bad3fe235e207e7247177…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-06-12T16:01:15+02:00
modules: readme files regenerated - siputils ... [skip ci]
---
Modified: src/modules/siputils/README
---
Diff: https://github.com/kamailio/kamailio/commit/1189d75511bad3fe235e207e7247177…
Patch: https://github.com/kamailio/kamailio/commit/1189d75511bad3fe235e207e7247177…
---
diff --git a/src/modules/siputils/README b/src/modules/siputils/README
index 46b5bd2b74..1e8ee06460 100644
--- a/src/modules/siputils/README
+++ b/src/modules/siputils/README
@@ -990,15 +990,14 @@ sip_p_charging_vector("g");
Meaning of the parameters is as follows:
* pname - name of the new URI parameter to hold the encoded incoming
URI.
- * saddr - local server address, can be host part, host-port part or
- host-port-params part.
+ * saddr - local server address in SIP URI format.
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE.
Example 1.42. contact_param_encode usage
...
if (is_method("REGISTER") and src_ip == 10.0.0.0/8) {
- contact_param_encode("ksu", "1.2.3.4:5060;transport=tcp");
+ contact_param_encode("ksu", "sip:1.2.3.4:5060;transport=tcp");
}
...
Module: kamailio
Branch: master
Commit: 20c1666e24f335231900bbe7cea0b0719f14f6de
URL: https://github.com/kamailio/kamailio/commit/20c1666e24f335231900bbe7cea0b07…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-06-12T11:16:19+02:00
modules: readme files regenerated - siputils ... [skip ci]
---
Modified: src/modules/siputils/README
---
Diff: https://github.com/kamailio/kamailio/commit/20c1666e24f335231900bbe7cea0b07…
Patch: https://github.com/kamailio/kamailio/commit/20c1666e24f335231900bbe7cea0b07…
---
diff --git a/src/modules/siputils/README b/src/modules/siputils/README
index 74344a83c1..46b5bd2b74 100644
--- a/src/modules/siputils/README
+++ b/src/modules/siputils/README
@@ -96,6 +96,9 @@ Gabriel Vasile
4.30. is_supported(option)
4.31. is_first_hop()
4.32. sip_p_charging_vector(flags)
+ 4.33. contact_param_encode(pname, saddr)
+ 4.34. contact_param_decode(pname)
+ 4.35. contact_param_decode_uri(pname)
5. Exported pseudo-variables
@@ -148,6 +151,9 @@ Gabriel Vasile
1.39. is_supported() usage
1.40. is_first_hop() usage
1.41. sip_p_charging_vector() usage
+ 1.42. contact_param_encode usage
+ 1.43. contact_param_decode usage
+ 1.44. contact_param_decode_ruri usage
Chapter 1. Admin Guide
@@ -205,6 +211,9 @@ Chapter 1. Admin Guide
4.30. is_supported(option)
4.31. is_first_hop()
4.32. sip_p_charging_vector(flags)
+ 4.33. contact_param_encode(pname, saddr)
+ 4.34. contact_param_decode(pname)
+ 4.35. contact_param_decode_uri(pname)
5. Exported pseudo-variables
@@ -420,6 +429,9 @@ modparam("auth", "rpid_avp", "$avp(myrpid)")
4.30. is_supported(option)
4.31. is_first_hop()
4.32. sip_p_charging_vector(flags)
+ 4.33. contact_param_encode(pname, saddr)
+ 4.34. contact_param_decode(pname)
+ 4.35. contact_param_decode_uri(pname)
4.1. ring_insert_callid()
@@ -969,6 +981,63 @@ if(is_first_hop()) { ... }
sip_p_charging_vector("g");
...
+4.33. contact_param_encode(pname, saddr)
+
+ This function encodes URI inside Contact headers by building a new URI
+ from 'saddr' parameter and adding a parameter with the name 'pname'
+ containing incoming URI encoded in Base64URL format.
+
+ Meaning of the parameters is as follows:
+ * pname - name of the new URI parameter to hold the encoded incoming
+ URI.
+ * saddr - local server address, can be host part, host-port part or
+ host-port-params part.
+
+ This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE.
+
+ Example 1.42. contact_param_encode usage
+...
+if (is_method("REGISTER") and src_ip == 10.0.0.0/8) {
+ contact_param_encode("ksu", "1.2.3.4:5060;transport=tcp");
+}
+...
+
+4.34. contact_param_decode(pname)
+
+ This function decodes URI inside Contact headers by building a new URI
+ from 'pname' parameter, decoding its value from Base64URL.
+
+ Meaning of the parameters is as follows:
+ * pname - name of the incoming URI parameter holding the encoded URI
+ value.
+
+ This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE.
+
+ Example 1.43. contact_param_decode usage
+...
+if (is_method("REGISTER") and src_ip == 1.2.3.4) {
+ contact_param_decode("ksu");
+}
+...
+
+4.35. contact_param_decode_uri(pname)
+
+ This function decodes R-URI (request URI) by building a new R-URI from
+ 'pname' parameter, decoding its value from Base64URL.
+
+ Meaning of the parameters is as follows:
+ * pname - name of the incoming URI parameter holding the encoded URI
+ value.
+
+ This function can be used from REQUEST_ROUTE.
+
+ Example 1.44. contact_param_decode_ruri usage
+...
+if (is_method("INVITE") and src_ip == 1.2.3.4) {
+ contact_param_decode_ruri("ksu");
+}
+...
+
5. Exported pseudo-variables
5.1. $pcv(all)