2007/9/27, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > when I call nta_outgoing_tcreate(), my network trace shows that > Sofia-SIP selects TCP transport to send the message. I would like to > understand why it does so, and I would also like to be able to enforce > usage of UDP.
The RFC 3261 tries to enforce "congestion safe" transport for SIP. A request larger than 1300 bytes should be sent over TCP instead of UDP in order to avoid fragmentation. (If the TCP connection establishment fails, the stack should try to use UDP.) The limit triggering switchover to TCP can be increased with NTATAG_UDP_MTU(), given to nta_agent_create()/nta_agent_set_params(). The maximum value is 65507 (maximum length for the UDP payload, 65535 minus 28 bytes for UDP/IP headers). -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel