diff --git a/misc/examples/pkg/kamailio-basic.cfg b/misc/examples/pkg/kamailio-basic.cfg index 34b14669639..c53fe8af5c5 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: +# Direct your questions about this file to: # # 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 5a826801660..c76d5c47d7a 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: +# Direct your questions about this file to: # # 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);