On Wed, 2009-06-03 at 10:11 +0530, chandan kumar wrote:
> Hi All,
>  
> Iam very much confused about sip expire time (during registration).
>  
> Say UserAgent registered to the Proxy . I want to know how long the UA
> will be in the Proxy,When the UA agent again will send the Register
> request.
>  
> Ex:In my Code say Iam sending a register request after every 5 min
> (300 sec). The proxy has register time duration like Min: 120  Max:
> 240sec .
>  
> My Question  is UA registered to Proxy, fine. After 240 sec ,How the
> proxy behaves.?
> I;m thinking UA will register request after 300 sec.

When the registrar responds with a 200 to the REGISTER request, it will
tell you how long the registration you requested will last.  You should
examine the returned Contact header to find an 'expires' parameter, or
if that is not there, and Expires header.  The value of either is the
number of seconds your registration will last.  Your UA should subtract
a little bit from that so that you refresh your registration shortly
before it would have expired (that way, transient network problems won't
cause you to have a gap when your registration is not valid).

Note that the returned value may be less than what you asked for.  You
should ask for what you'd like each time (don't use the returned value
for the next refresh) and check each response to see when you should
refresh.


_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to