Browse Source

- added various tls options (commented out)

Jan Janak 17 years ago
parent
commit
c19a9ff3a8
2 changed files with 11 additions and 0 deletions
  1. 9 0
      etc/ser-oob.cfg
  2. 2 0
      etc/ser.cfg

+ 9 - 0
etc/ser-oob.cfg

@@ -167,6 +167,9 @@ listen=224.0.1.75       # sip.mcast.net for REGISTER replication
 #DEBCONF-LISTEN_ADMIN-START
 listen=udp:127.0.0.1
 #DEBCONF-LISTEN_ADMIN-END
+
+#listen=tls:127.0.0.1:5061
+
 mlock_pages=yes
 shm_force_alloc=yes
 real_time=7
@@ -213,6 +216,9 @@ tcp_connection_lifetime=3600
 #tcp_max_connections=10240  # default is 2048
 tcp_connect_timeout=1
 
+# Enable TLS hooks so that the TLS module can be used
+tls_enable=yes
+
 # -------------------- Custom Parameters ------------------------------------
 # These parameters can be modified runtime via RPC interface,
 # read the documentation of cfg_rpc module.
@@ -266,6 +272,7 @@ loadmodule "db_ops"
 loadmodule "exec"
 loadmodule "cfg_rpc"
 loadmodule "eval"
+#loadmodule "tls"
 
 # ----------------- Declaration of Script Flags -----------------------------
 flags
@@ -478,6 +485,8 @@ modparam("exec", "setvars", 0);
 modparam("timer", "declare_timer",
          "ON_1MIN_TIMER=ON_1MIN_TIMER,60000,slow,enable");
 
+# -- tls --
+#modparam("tls", "config", "tls.cfg");
 
 # -- db_ops --
 

+ 2 - 0
etc/ser.cfg

@@ -46,6 +46,7 @@ rev_dns=no      # (cmd. line: -R)
 #mhomed=yes  # usefull for multihomed hosts, small performance penalty
 #disable_tcp=yes 
 #tcp_accept_aliases=yes # accepts the tcp alias via option (see NEWS)
+enable_tls=yes
 
 #
 
@@ -73,6 +74,7 @@ loadmodule "/usr/local/lib/ser/modules/avp.so"
 loadmodule "/usr/local/lib/ser/modules/avp_db.so"
 loadmodule "/usr/local/lib/ser/modules/acc_db.so"
 loadmodule "/usr/local/lib/ser/modules/xmlrpc.so"
+#loadmodule "/usr/local/lib/ser/modules/tls.so"
 
 # ----------------- setting script FLAGS -----------------------------
 flags