Преглед изворни кода

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

S-P Chan пре 1 година
родитељ
комит
475b4da798
1 измењених фајлова са 6 додато и 4 уклоњено
  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