Re: Intermittent TLS inbound failure behind HAProxy, Kamailio opens new TCP to HAProxy ephemeral port and gets RST

13715209697--- via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <[email protected]>
Questions
    1.	Under which conditions does Kamailio decide to open a new TCP connection to the Contact instead of reusing an existing TLS connection?
    2.	If connection ID lookup fails, is fallback to active connect the expected behavior?

```
route[LOCATION] {
	if (!lookup("location")) {
		$var(rc) = $rc;
		t_newtran();
		switch ($var(rc)) {
			case -1:
			case -3:
				send_reply("404", "Not Found");
				exit;
			case -2:
				send_reply("405", "Method Not Allowed");
				exit;
		}
	}

	set_forward_no_connect(); # here you are
	route(RELAY);
	exit;
}
```

But this might not help you. The key point is why the TCP connection between HAProxy and Kamailio gets disconnected—who sent the TCP disconnect.


Han
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.