2009/1/12 Stefano Sabatini <ssabat...@reilabs.com>:
> the attached sample catches the timeout event, which is sent
> non-unexpectedly as a nua_r_register event with status 408 (the
> application crashes with an assert when it is called nua_shutdown(), I
> don't know exactly when it should be called).

If you really want, you can make difference between network-sent 408
and internally-generated 408 with nta_sip_is_internal().


> Grepping the log I got this sequence of values for the retransmissions
> timer:
> nta: timer set next to 1000 ms
> nta: timer set next to 2000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 489 ms
> nta: timer set next to 500 ms
> nta: timer set next to 1000 ms
> nta: timer set next to 2000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 488 ms
> nta: timer set next to 500 ms
> nta: timer set next to 1000 ms
> nta: timer set next to 2000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
> nta: timer set next to 4000 ms
....

> using sofia sip 1.12.9, while I expect the sequence:
> 500
> 1000
> 2000
> 4000
> 8000
> 16000
> 32000
>
> Am I missing something or there is some bug in the stack?

The timer E and maximum retransmission time should cap at SIP T2,
which is 4 seconds. RFC 4321 contains everything that you really did
not want to know about SIP retransmissions and why they are like they
are.

Also, it looks like the stack retries multiple times, which is
probably because there is multiple DNS records available for your
server (and it can not reach any of them).

-- 
Pekka.Pessi mail at nokia.com

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to