Skip to content

Commit

Permalink
SUPP-503 add tls_threads_mode
Browse files Browse the repository at this point in the history
* use upstream new parameters for openssl >= 3 issues related to tls module
* defaults are set for known working values after testing on sleepygary

(cherry picked from commit a0a9dfc)
  • Loading branch information
lazedo committed Sep 24, 2024
1 parent e713e96 commit ebe7848
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions kamailio/tls-role.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!trydef TLS_CONFIG_FILE /etc/kazoo/kamailio/tls.cfg
#!trydef KZ_TLS_INIT_MODE 3
#!trydef KZ_TLS_INIT_MODE 1
#!trydef KZ_TLS_THREADS_MODE 2
#!trydef KZ_TLS_LOG_LEVEL 1

#!substdef "!TLS_CFG!$def(TLS_CONFIG_FILE)!g"

enable_tls = yes
tls_threads_mode = KZ_TLS_THREADS_MODE

#!ifndef WITHOUT_DEFAULT_LISTENER
listen=TLS_SIP
Expand Down Expand Up @@ -71,12 +74,14 @@ listen=TLS_LB_ADVERTISE_ALG
#!endif

####### TLS Parameters #########
#!ifndef MOD_tls
loadmodule "tls.so"
#!endif
modparam("tls", "config", "TLS_CFG")
modparam("tls", "low_mem_threshold1", 1)
modparam("tls", "low_mem_threshold2", 1)
modparam("tls", "xavp_cfg", "tls")
modparam("tls", "init_mode", KZ_TLS_INIT_MODE)

modparam("debugger", "mod_level", "tls=1")
modparamx("debugger", "mod_level", "tls=$def(KZ_TLS_LOG_LEVEL)")

0 comments on commit ebe7848

Please sign in to comment.