Module: kamailio
Branch: master
Commit: 56bf76bba043ae02eefa8263d352caa7bb3af213
URL:
https://github.com/kamailio/kamailio/commit/56bf76bba043ae02eefa8263d352caa…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-09T09:09:49+02:00
kamailio.cfg: set_forward_no_connect() only for initial requests going through nat
---
Modified: etc/kamailio.cfg
---
Diff:
https://github.com/kamailio/kamailio/commit/56bf76bba043ae02eefa8263d352caa…
Patch:
https://github.com/kamailio/kamailio/commit/56bf76bba043ae02eefa8263d352caa…
---
diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index 20871fbc62..c41b933e5c 100644
--- a/etc/kamailio.cfg
+++ b/etc/kamailio.cfg
@@ -559,10 +559,6 @@ route[RELAY] {
route[REQINIT] {
# no connect for sending replies
set_reply_no_connect();
- if(has_totag()) {
- # no connect for requests within dialog
- set_forward_no_connect();
- }
#!ifdef WITH_ANTIFLOOD
# flood detection from same IP and traffic ban for a while
@@ -834,7 +830,11 @@ route[NATMANAGE] {
if(isbflagset(FLB_NATB)) {
# no connect message in a dialog involving NAT traversal
- set_forward_no_connect();
+ if (is_request()) {
+ if(has_totag()) {
+ set_forward_no_connect();
+ }
+ }
}
#!endif
return;