... | ... |
@@ -1,10 +1,10 @@ |
1 | 1 |
#!KAMAILIO |
2 | 2 |
# |
3 |
-# Kamailio (OpenSER) SIP Server v5.0 - default configuration script |
|
3 |
+# Kamailio (OpenSER) SIP Server v5.1 - default basic configuration script |
|
4 | 4 |
# - web: http://www.kamailio.org |
5 | 5 |
# - git: http://sip-router.org |
6 | 6 |
# |
7 |
-# Direct your questions about this file to: <sr-users@lists.sip-router.org> |
|
7 |
+# Direct your questions about this file to: <sr-users@lists.kamailio.org> |
|
8 | 8 |
# |
9 | 9 |
# Refer to the Core CookBook at http://www.kamailio.org/wiki/ |
10 | 10 |
# for an explanation of possible statements, functions and parameters. |
... | ... |
@@ -129,18 +129,14 @@ port=5060 |
129 | 129 |
enable_tls=yes |
130 | 130 |
#!endif |
131 | 131 |
|
132 |
-# life time of TCP connection when there is no traffic |
|
133 |
-# - a bit higher than registration expires to cope with UA behind NAT |
|
132 |
+/* life time of TCP connection when there is no traffic |
|
133 |
+ * - a bit higher than registration expires to cope with UA behind NAT */ |
|
134 | 134 |
tcp_connection_lifetime=3605 |
135 | 135 |
|
136 | 136 |
####### Modules Section ######## |
137 | 137 |
|
138 |
-# set paths to location of modules (to sources or installation folders) |
|
139 |
-#!ifdef WITH_SRCPATH |
|
140 |
-mpath="modules" |
|
141 |
-#!else |
|
142 |
-mpath="/usr/local/lib/kamailio/modules/" |
|
143 |
-#!endif |
|
138 |
+/* set the path to location of modules */ |
|
139 |
+# mpath="/usr/local/lib/kamailio/modules/" |
|
144 | 140 |
|
145 | 141 |
#!ifdef WITH_MYSQL |
146 | 142 |
loadmodule "db_mysql.so" |
... | ... |
@@ -329,18 +325,20 @@ request_route { |
329 | 325 |
exit; |
330 | 326 |
} |
331 | 327 |
|
328 |
+ # handle retransmissions |
|
329 |
+ if (!is_method("ACK")) { |
|
330 |
+ if(t_precheck_trans()) { |
|
331 |
+ t_check_trans(); |
|
332 |
+ exit; |
|
333 |
+ } |
|
334 |
+ t_check_trans(); |
|
335 |
+ } |
|
336 |
+ |
|
332 | 337 |
# handle requests within SIP dialogs |
333 | 338 |
route(WITHINDLG); |
334 | 339 |
|
335 | 340 |
### only initial requests (no To tag) |
336 | 341 |
|
337 |
- # handle retransmissions |
|
338 |
- if(t_precheck_trans()) { |
|
339 |
- t_check_trans(); |
|
340 |
- exit; |
|
341 |
- } |
|
342 |
- t_check_trans(); |
|
343 |
- |
|
344 | 342 |
# authentication |
345 | 343 |
route(AUTH); |
346 | 344 |
|
... | ... |
@@ -1,10 +1,10 @@ |
1 | 1 |
#!KAMAILIO |
2 | 2 |
# |
3 |
-# Kamailio (OpenSER) SIP Server v5.0 - default configuration script |
|
3 |
+# Kamailio (OpenSER) SIP Server v5.1 - default advanced configuration script |
|
4 | 4 |
# - web: http://www.kamailio.org |
5 | 5 |
# - git: http://sip-router.org |
6 | 6 |
# |
7 |
-# Direct your questions about this file to: <sr-users@lists.sip-router.org> |
|
7 |
+# Direct your questions about this file to: <sr-users@lists.kamailio.org> |
|
8 | 8 |
# |
9 | 9 |
# Refer to the Core CookBook at http://www.kamailio.org/wiki/ |
10 | 10 |
# for an explanation of possible statements, functions and parameters. |
... | ... |
@@ -512,18 +512,20 @@ request_route { |
512 | 512 |
exit; |
513 | 513 |
} |
514 | 514 |
|
515 |
+ # handle retransmissions |
|
516 |
+ if (!is_method("ACK")) { |
|
517 |
+ if(t_precheck_trans()) { |
|
518 |
+ t_check_trans(); |
|
519 |
+ exit; |
|
520 |
+ } |
|
521 |
+ t_check_trans(); |
|
522 |
+ } |
|
523 |
+ |
|
515 | 524 |
# handle requests within SIP dialogs |
516 | 525 |
route(WITHINDLG); |
517 | 526 |
|
518 | 527 |
### only initial requests (no To tag) |
519 | 528 |
|
520 |
- # handle retransmissions |
|
521 |
- if(t_precheck_trans()) { |
|
522 |
- t_check_trans(); |
|
523 |
- exit; |
|
524 |
- } |
|
525 |
- t_check_trans(); |
|
526 |
- |
|
527 | 529 |
# authentication |
528 | 530 |
route(AUTH); |
529 | 531 |
|