<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div>Hi all, i was using kamailio 4.2.1 located in 2 networks</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">listen = tcp:MY_ADDR:5060 advertise MY_ADDR:5060<br>listen = tls:MY_ADDR:5061 advertise PUBLIC_NAT_ADDR:5061</blockquote><div><br></div><div><div>when the call made from the inside network to out side, running `record_route()` resulted in 2 Record-Route headers added (enable_double_rr=1)</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Record-Route: PUBLIC_NAT_ADDR:5061;transport=tls;lr<br>Record-Route: MY_ADDR;transport=tcp;lr</blockquote></div><div><br></div><div><div>That was totally fine omitting the port in the first Record-Route when using tcp (or udp) on the first realm, but when i start switching to tls, it caused trouble</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Record-Route: PUBLIC_NAT_ADDR:5061;transport=tls;lr<br>Record-Route: MY_ADDR;transport=tls;lr</blockquote></div><div><br></div><div><div>The client is then told to send ACK/BYE to `MY_ADDR;transport=tls` located at `MY_ADDR:5061` as per rfc3263, then the call would failed.</div></div><div><br></div><div><div>I had another try with `record_route_preset("PUBLIC_NAT_ADDR:5061;transport=tls", "MY_ADDR:5060;transport=tls");`, it really did add what i want with explicit 5060 port on RR, `ACK/BYE` travel on the correct path, but `loose_route()` only consumes the local `Route` header (it should consume 2). So my assumption is to stick with `record_route()` function to make `loose_route()` work properly.</div></div><div><br></div><div><div>I tried using another port on the local realm, e.g: 5062 and the port is explicitly added to the Record-Route header `MY_ADDR:5062;transport=tls;lr`</div><div>So is `5060` couldn't be explicitly added to the inbound Record-Route, or i just missed something?</div></div><div><br></div><div><div>Any help will be appreciated.</div><div><br></div><div>P/S: I also tried 4.4.7 and it still omit my 5060 port in the RR.</div><div><br></div><div>rgds,</div></div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Loi Dang Thanh<br></div>Phone : +84. 774.735.448<br></div>Email : <a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>