|
@@ -1,10 +1,10 @@
|
|
#!KAMAILIO
|
|
#!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
|
|
# - web: http://www.kamailio.org
|
|
# - git: http://sip-router.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/
|
|
# Refer to the Core CookBook at http://www.kamailio.org/wiki/
|
|
# for an explanation of possible statements, functions and parameters.
|
|
# for an explanation of possible statements, functions and parameters.
|
|
@@ -129,18 +129,14 @@ port=5060
|
|
enable_tls=yes
|
|
enable_tls=yes
|
|
#!endif
|
|
#!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
|
|
tcp_connection_lifetime=3605
|
|
|
|
|
|
####### Modules Section ########
|
|
####### 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
|
|
#!ifdef WITH_MYSQL
|
|
loadmodule "db_mysql.so"
|
|
loadmodule "db_mysql.so"
|
|
@@ -329,18 +325,20 @@ request_route {
|
|
exit;
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ # handle retransmissions
|
|
|
|
+ if (!is_method("ACK")) {
|
|
|
|
+ if(t_precheck_trans()) {
|
|
|
|
+ t_check_trans();
|
|
|
|
+ exit;
|
|
|
|
+ }
|
|
|
|
+ t_check_trans();
|
|
|
|
+ }
|
|
|
|
+
|
|
# handle requests within SIP dialogs
|
|
# handle requests within SIP dialogs
|
|
route(WITHINDLG);
|
|
route(WITHINDLG);
|
|
|
|
|
|
### only initial requests (no To tag)
|
|
### only initial requests (no To tag)
|
|
|
|
|
|
- # handle retransmissions
|
|
|
|
- if(t_precheck_trans()) {
|
|
|
|
- t_check_trans();
|
|
|
|
- exit;
|
|
|
|
- }
|
|
|
|
- t_check_trans();
|
|
|
|
-
|
|
|
|
# authentication
|
|
# authentication
|
|
route(AUTH);
|
|
route(AUTH);
|
|
|
|
|