Module: kamailio
Branch: master
Commit: 5e54b72fe8afa6710a51c65ed942b671ab0249d9
URL:
https://github.com/kamailio/kamailio/commit/5e54b72fe8afa6710a51c65ed942b67…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-11-08T09:49:35+01:00
misc/examples: updates for basic and advanced configs for v5.1
---
Modified: misc/examples/pkg/kamailio-basic.cfg
Modified: misc/examples/pkg/kamailio-oob.cfg
---
Diff:
https://github.com/kamailio/kamailio/commit/5e54b72fe8afa6710a51c65ed942b67…
Patch:
https://github.com/kamailio/kamailio/commit/5e54b72fe8afa6710a51c65ed942b67…
---
diff --git a/misc/examples/pkg/kamailio-basic.cfg b/misc/examples/pkg/kamailio-basic.cfg
index 34b1466963..c53fe8af5c 100644
--- a/misc/examples/pkg/kamailio-basic.cfg
+++ b/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(a)lists.sip-router.org>
+# Direct your questions about this file to: <sr-users(a)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);
diff --git a/misc/examples/pkg/kamailio-oob.cfg b/misc/examples/pkg/kamailio-oob.cfg
index 5a82680166..c76d5c47d7 100644
--- a/misc/examples/pkg/kamailio-oob.cfg
+++ b/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(a)lists.sip-router.org>
+# Direct your questions about this file to: <sr-users(a)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);