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!

Reply via email to