On date Monday 2009-01-12 16:19:06 +0200, Pekka Pessi phoned this:
> 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).

Thanks again Pekka,

yes I was sending the REGISTER request to google to test it.

Just another question, is there some mechanism in sofia to
automatically store the expires time sent back by the REGISTER
response, and re-do the registration when it is almost expiring, or do
I have to do it in the application?

Regards.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to