Hey Daniel,
Appreciate quick response on this one.
With my tests on latest master, Record-Route headers are looking good.
Still had port present in VIA header:
Via: SIP/2.0/TLS `kamailio.dns.name222:5071`;branch=z9hG4bK83fc.e394332204faf76799e7cb02f73e3233.0;i=304
```2024/09/18 02:16:24.639056 172.17.57.172:5071 -> 172.17.57.213:5071 INVITE sip:out_7777777777@kamailio.dns.name111 SIP/2.0 Record-Route: sip:7777777777@kamailio.dns.name222;transport=tls;sn=local_socket_tls;r2=on;lr=on;ftag=11f0476e-71e4-4289-86cb-ca492dbca126 Record-Route: sip:7777777777@kamailio.dns.name111;transport=tls;sn=external_socket_tls;r2=on;lr=on;ftag=11f0476e-71e4-4289-86cb-ca492dbca126 Via: SIP/2.0/TLS kamailio.dns.name222:5071;branch=z9hG4bK83fc.e394332204faf76799e7cb02f73e3233.0;i=304 Via: SIP/2.0/TLS 172.17.0.103:5061;received=172.17.0.103;rport=39519;branch=z9hG4bKPj9711ba02-84bb-4de4-9a2f-8b06c9e8cc22;alias From: sip:5555555555@172.17.0.103;tag=11f0476e-71e4-4289-86cb-ca492dbca126 To: sip:7777777777@kamailio.dns.name111 Contact: sip:itsp@172.17.0.103:5061;transport=TLS Call-ID: 6ec2392c-77a3-4353-b1e3-772b81330d8e CSeq: 30429 INVITE Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER Supported: 100rel, timer, replaces, norefersub, histinfo Session-Expires: 1800 Min-SE: 90 P-Asserted-Identity: sip:5555555555@172.17.0.103 Max-Forwards: 69 User-Agent: ITSP PBX Content-Type: application/sdp Content-Length: 312```
Thank you.