Module: kamailio
Branch: 5.7
Commit: 2f0cca81bfc47783098e4c869b038229cd3e4ed0
URL:
https://github.com/kamailio/kamailio/commit/2f0cca81bfc47783098e4c869b03822…
Author: S-P Chan <shihping.chan(a)gmail.com>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-02-12T07:52:26+01:00
Sample etc/kamailio.cfg: global var tls_threads_mode
- load tls first if used
- global var tls_threads_mode
---
Modified: etc/kamailio.cfg
---
Diff:
https://github.com/kamailio/kamailio/commit/2f0cca81bfc47783098e4c869b03822…
Patch:
https://github.com/kamailio/kamailio/commit/2f0cca81bfc47783098e4c869b03822…
---
diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
old mode 100644
new mode 100755
index fe7b111a012..a95a652b935
--- a/etc/kamailio.cfg
+++ b/etc/kamailio.cfg
@@ -220,6 +220,13 @@ enable_tls=yes
/* upper limit for TLS connections */
tls_max_connections=2048
+
+/* For OpenSSL 3 integration
+ * functions calling libssl3 can be invoked in a transient thread
+ * 0: disable threaded calls
+ * 1: use threads for process#0 only
+ * 2: use threads for all processes */
+tls_threads_mode=1
#!endif
/* set it to yes to enable sctp and load sctp.so module */
@@ -257,6 +264,12 @@ voicemail.srv_port = "5060" desc "VoiceMail
Port"
/* set paths to location of modules */
# mpath="/usr/local/lib/kamailio/modules/"
+# when using TLS with OpenSSL it is recommended to load this module
+# first so that OpenSSL is initialized correctly
+#!ifdef WITH_TLS
+loadmodule "tls.so"
+#!endif
+
#!ifdef WITH_MYSQL
loadmodule "db_mysql.so"
#!endif
@@ -319,10 +332,6 @@ loadmodule "rtpproxy.so"
#!endif
#!endif
-#!ifdef WITH_TLS
-loadmodule "tls.so"
-#!endif
-
#!ifdef WITH_HTABLE
loadmodule "htable.so"
#!endif