> From: Wei BJ Lu [mailto:[EMAIL PROTECTED]]

> I am reading draft-ietf-simple-presence-03 (SIP Extensions 
> for Presence),
> it does not specify what the subscriber should do when the 
> SUBSCRIBE fail.
> I am not sure whether the subscriber should keep sending 
> SUBSCRIBE at some
> refresh interval if the previous SUBSCRIBE is timeout or get 
> a 404, or it
> should just terminate the session.

The right thing to do here is going to depend on the application
trying to get the presence information. For the case you describe
below, retrying the subscription periodically is a sane thing
to do. 

Note that you may get other errors than the implicit error induced
by a timeout or a 404 from some element. 401/407, 480, and 503 are
not entirely unlikely. When you would choose to retry will depend
on which error response you get.

> 
> Regarding the following scenario: if somebody maintains a 
> buddy-list, when
> he starts his UA, the UA can send SUBSCRIBE to each buddy to 
> get current
> presence information of the buddy. If one buddy is not 
> online, then the
> SUBSCRIBE will timeout or it will get a 404 from the proxy 
> server. If the
> UA does not re-send SUBSCRIBE, it will not be aware when the buddy is
> online after some time.
> 
> If the proxy server is a presence server, this will not be a problem.
> But if there isn't any presence server, what should the subscriber do?
> 
> -Lu Wei
> 
> _______________________________________________
> Sip-implementors mailing list
> [EMAIL PROTECTED]
> http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
> 
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

Reply via email to