Selaa lähdekoodia

Sample etc/kamailio.cfg: tls should be loaded first if used

S-P Chan 1 vuosi sitten
vanhempi
commit
475b4da798
1 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. 6 4
      etc/kamailio.cfg

+ 6 - 4
etc/kamailio.cfg

@@ -257,6 +257,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 +325,6 @@ loadmodule "rtpproxy.so"
 #!endif
 #!endif
 
-#!ifdef WITH_TLS
-loadmodule "tls.so"
-#!endif
-
 #!ifdef WITH_HTABLE
 loadmodule "htable.so"
 #!endif