Module: kamailio
Branch: master
Commit: 3036a53fbb999c89802ca97158c444e9a1e404d5
URL:
https://github.com/kamailio/kamailio/commit/3036a53fbb999c89802ca97158c444e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-03-20T15:16:27+01:00
etc/kamailio.cfg: set no connect flags for replies and natted messages
---
Modified: etc/kamailio.cfg
---
Diff:
https://github.com/kamailio/kamailio/commit/3036a53fbb999c89802ca97158c444e…
Patch:
https://github.com/kamailio/kamailio/commit/3036a53fbb999c89802ca97158c444e…
---
diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index 7462c9cdfd..6136926265 100644
--- a/etc/kamailio.cfg
+++ b/etc/kamailio.cfg
@@ -554,6 +554,9 @@ route[RELAY] {
# Per SIP request initial checks
route[REQINIT] {
+ # no connect for sending replies
+ set_reply_no_connect();
+
#!ifdef WITH_ANTIFLOOD
# flood detection from same IP and traffic ban for a while
# be sure you exclude checking trusted peers, such as pstn gateways
@@ -821,6 +824,11 @@ route[NATMANAGE] {
set_contact_alias();
}
}
+
+ if(isbflagset(FLB_NATB)) {
+ # message in a dialog involving NAT traversal - no connect
+ set_forward_no_connect();
+ }
#!endif
return;
}