浏览代码

- remove now unneeded hints about the blacklist and ipv6 deactivation
- use the error msg from RFC for msg len check
- add one xlog example with pseudo-variables


git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@3208 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt 18 年之前
父节点
当前提交
65e837a352
共有 1 个文件被更改,包括 6 次插入8 次删除
  1. 6 8
      etc/openser.cfg

+ 6 - 8
etc/openser.cfg

@@ -8,9 +8,9 @@
 
 
 # ----------- global configuration parameters ------------------------
 # ----------- global configuration parameters ------------------------
 
 
-debug=3            # debug level (cmd line: -dddddddddd)
+debug=3
 fork=yes
 fork=yes
-log_stderror=no    # (cmd line: -E)
+log_stderror=no
 children=4
 children=4
 
 
 port=5060
 port=5060
@@ -19,11 +19,6 @@ port=5060
 #fork=no
 #fork=no
 #log_stderror=yes
 #log_stderror=yes
 
 
-# Uncomment this to prevent the blacklisting of temporary not available destinations
-#disable_dns_blacklist=yes
-
-# # Uncomment this to prevent the IPv6 lookup after v4 dns lookup failures
-#dns_try_ipv6=no
 
 
 # uncomment the following lines for TLS support
 # uncomment the following lines for TLS support
 #disable_tls = 0
 #disable_tls = 0
@@ -51,6 +46,7 @@ loadmodule "maxfwd.so"
 loadmodule "usrloc.so"
 loadmodule "usrloc.so"
 loadmodule "registrar.so"
 loadmodule "registrar.so"
 loadmodule "textops.so"
 loadmodule "textops.so"
+loadmodule "xlog.so"
 loadmodule "mi_fifo.so"
 loadmodule "mi_fifo.so"
 
 
 # Uncomment this if you want digest authentication
 # Uncomment this if you want digest authentication
@@ -100,9 +96,11 @@ route{
 	};
 	};
 
 
 	if (msg:len >=  2048 ) {
 	if (msg:len >=  2048 ) {
-		sl_send_reply("513", "Message too big");
+		sl_send_reply("513", "Message Too Large");
 		exit;
 		exit;
 	};
 	};
+	# uncomment this to log informations about the received message via pseudo-variables
+	#xlog("received by openser[$pp] at '$Tf' from $si:$sp, method: $rm, transport: $rP:$Ri:$rp, user agent: $ua");
 
 
 	# we record-route all messages -- to make sure that
 	# we record-route all messages -- to make sure that
 	# subsequent messages will go through our proxy; that's
 	# subsequent messages will go through our proxy; that's