On 10/23/06, Michael Jerris <[EMAIL PROTECTED]> wrote:
> As stated in rfc 3261 18.1.1, sofia properly attempts to send TCP on
> messages over 1300 bytes, but it does not appear to attempt to resend
> via UDP if the TCP fails (after quite some time as stated:

Do you receive ICMP or RESET on TCP connection? There is no timeout on
the connection attempt except timer F.  The so called "stealth" mode
firewalls and other brain dead stuff just drop the packets and never
send ICMP or RESET back.

>    If an element sends a request over TCP because of these message size
>    constraints, and that request would have otherwise been sent over
>    UDP, if the attempt to establish the connection generates either an
>    ICMP Protocol Not Supported, or results in a TCP reset, the element
>    SHOULD retry the request, using UDP.  This is only to provide
>    backwards compatibility with RFC 2543 compliant implementations that
>    do not support TCP.  It is anticipated that this behavior will be
>    deprecated in a future revision of this specification.

> Another worry on this, the stack has no real way to know if the other
> end is even capable of doing TCP, such as if it is behind nat and not
> supporting it, or if it is disabled on the device.  Is there any good
> way (other than setting NTATAG_UDP_MTU to some very high number to have
> the stack properly know if tcp is even supported, and to not have to
> wait for a tcp timeout before it attempts UDP?

There are two options. Set NTATAG_UDP_MTU to 64K, or give only UDP
transport (e.g. NUTAG_URL("sip:*;transport=udp")) to nua_create().

-- 
Pekka.Pessi mail at nokia.com

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to