On Mar 11, 2025, at 10:24 PM, Pavan Kumar via sr-users sr-users@lists.kamailio.org wrote:
Hello Kamailio Community, • Is this expected behavior? Should Kamailio automatically truncate SDP when relaying from WebSocket to UDP?
Yes. Often referred to as UDP fragmentation.
• Could this be working accidentally? For example, is FreeSWITCH handling the partial SDP gracefully by default?
It could be working non-accidentally. ;) As long as the packets are received well, there may not be a problem.
• Should I be concerned about potential failures in different scenarios? (e.g., ICE candidate loss, missing codec negotiation)
Alex Balashov wrote up a nice piece many years ago… https://blog.evaristesys.com/2016/02/04/sip-udp-fragmentation-and-kamailio-t...
There’s generally 2 ways of approaching it…
A) Switch to TCP for that connection B) Keep as is
Depending on the amount of traffic you are pushing through, TCP is generally a safe method of handling. If you’re running a considerable load (especially considering the system is also running websockets), you may need to tune your system appropriately.
If these two systems were (let’s say) on the same LAN and even lucky enough to be on dedicated VLAN, then if there wasn’t any problem in the fragmentation, you may just be fine to let it go as is.
Regards,
Fred Posner