浏览代码

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
Daniel-Constantin Mierla 6 年之前
父节点
当前提交
8bba208fe6
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      etc/kamailio.cfg

+ 5 - 1
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