Module: kamailio
Branch: master
Commit: 8bba208fe6ae7ccb4c92362b8c33f1530b9f56da
URL:
https://github.com/kamailio/kamailio/commit/8bba208fe6ae7ccb4c92362b8c33f15…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-03-21T14:09:43+01:00
etc/kamailio.cfg: no connect for forwarding requests withing dialog
- connections should be opened during the dialog creation and given that
tcp/tls source port is is most of the cases ephemeral, trying to connect
back fails
---
Modified: etc/kamailio.cfg
---
Diff:
https://github.com/kamailio/kamailio/commit/8bba208fe6ae7ccb4c92362b8c33f15…
Patch:
https://github.com/kamailio/kamailio/commit/8bba208fe6ae7ccb4c92362b8c33f15…
---
diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index 6136926265..9b8cc526f7 100644
--- a/etc/kamailio.cfg
+++ b/etc/kamailio.cfg
@@ -556,6 +556,10 @@ 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
@@ -826,7 +830,7 @@ route[NATMANAGE] {
}
if(isbflagset(FLB_NATB)) {
- # message in a dialog involving NAT traversal - no connect
+ # no connect message in a dialog involving NAT traversal
set_forward_no_connect();
}
#!endif