浏览代码

misc/examples: updates for basic and advanced configs for v5.1

Daniel-Constantin Mierla 7 年之前
父节点
当前提交
5e54b72fe8
共有 2 个文件被更改,包括 26 次插入26 次删除
  1. 15 17
      misc/examples/pkg/kamailio-basic.cfg
  2. 11 9
      misc/examples/pkg/kamailio-oob.cfg

+ 15 - 17
misc/examples/pkg/kamailio-basic.cfg

@@ -1,10 +1,10 @@
 #!KAMAILIO
 #
-# Kamailio (OpenSER) SIP Server v5.0 - default configuration script
+# Kamailio (OpenSER) SIP Server v5.1 - default basic configuration script
 #     - web: http://www.kamailio.org
 #     - git: http://sip-router.org
 #
-# Direct your questions about this file to: <sr-users@lists.sip-router.org>
+# Direct your questions about this file to: <sr-users@lists.kamailio.org>
 #
 # Refer to the Core CookBook at http://www.kamailio.org/wiki/
 # for an explanation of possible statements, functions and parameters.
@@ -129,18 +129,14 @@ port=5060
 enable_tls=yes
 #!endif
 
-# life time of TCP connection when there is no traffic
-# - a bit higher than registration expires to cope with UA behind NAT
+/* life time of TCP connection when there is no traffic
+ * - a bit higher than registration expires to cope with UA behind NAT */
 tcp_connection_lifetime=3605
 
 ####### Modules Section ########
 
-# set paths to location of modules (to sources or installation folders)
-#!ifdef WITH_SRCPATH
-mpath="modules"
-#!else
-mpath="/usr/local/lib/kamailio/modules/"
-#!endif
+/* set the path to location of modules */
+# mpath="/usr/local/lib/kamailio/modules/"
 
 #!ifdef WITH_MYSQL
 loadmodule "db_mysql.so"
@@ -329,18 +325,20 @@ request_route {
 		exit;
 	}
 
+	# handle retransmissions
+	if (!is_method("ACK")) {
+		if(t_precheck_trans()) {
+			t_check_trans();
+			exit;
+		}
+		t_check_trans();
+	}
+
 	# handle requests within SIP dialogs
 	route(WITHINDLG);
 
 	### only initial requests (no To tag)
 
-	# handle retransmissions
-	if(t_precheck_trans()) {
-		t_check_trans();
-		exit;
-	}
-	t_check_trans();
-
 	# authentication
 	route(AUTH);
 

+ 11 - 9
misc/examples/pkg/kamailio-oob.cfg

@@ -1,10 +1,10 @@
 #!KAMAILIO
 #
-# Kamailio (OpenSER) SIP Server v5.0 - default configuration script
+# Kamailio (OpenSER) SIP Server v5.1 - default advanced configuration script
 #     - web: http://www.kamailio.org
 #     - git: http://sip-router.org
 #
-# Direct your questions about this file to: <sr-users@lists.sip-router.org>
+# Direct your questions about this file to: <sr-users@lists.kamailio.org>
 #
 # Refer to the Core CookBook at http://www.kamailio.org/wiki/
 # for an explanation of possible statements, functions and parameters.
@@ -512,18 +512,20 @@ request_route {
 		exit;
 	}
 
+	# handle retransmissions
+	if (!is_method("ACK")) {
+		if(t_precheck_trans()) {
+			t_check_trans();
+			exit;
+		}
+		t_check_trans();
+	}
+
 	# handle requests within SIP dialogs
 	route(WITHINDLG);
 
 	### only initial requests (no To tag)
 
-	# handle retransmissions
-	if(t_precheck_trans()) {
-		t_check_trans();
-		exit;
-	}
-	t_check_trans();
-
 	# authentication
 	route(AUTH);