Maybe you can attach a pcap with the traffic for this case, from the REGISTER sent to Kamailio to the INVITE exposing the issue.
There are some aspects related to SIP that you confuse or maybe you didn't explain it properly above. The Contact header in the INVITE is not the socket of Kamailio because Kamailio is not generating the INVITE. If the device is behind the NAT, the sip server cannot connect to it, unless the nat router is a port forwarding firewall.
Kamailio is reusing the tcp connection whenever the destination address is matching an active one. The pcap with the sip traffic should clarify what happens.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.