<div dir="ltr">Hi all,<div><br></div><div>I'm currently adding a feature to our Kamailio configuration to fork calls based on user agent.</div><div><br></div><div>To do so I'm getting the registered endpoints with reg_fetch_contacts() iterating through and matching on them, then using seturi() / append_branch() and setting the dst-uri and flags as required.</div><div><br></div><div>However, calls are intermittently going to the wrong TCP connection, despite the logs showing the correct destination IP and port in the ONSEND route.</div><div><br></div><div>Looking in the location table I can see each registration has a connection_id, and the debug log indicates it's finding the connection by ID:</div><div><br></div><div> DEBUG: <core> [core/tcp_main.c:1651]: _tcpconn_find(): found connection by id: 3<br></div><div><br></div><div>Is there a way to set the conid per branch? Is it necessary?<br></div><div><br></div><div>We're using kamailio 5.3.3 on Debian 10.</div><div><br></div><div>Thanks</div><div>Matthew</div></div>