On 2/20/15 10:51 AM, a...@ag-projects.com wrote:

On 20 Feb 2015, at 09:50, Sreejith Sadaasivan <sreejith_sadasi...@yahoo.com> 
wrote:

Hi All,
I have a doubt on presence subscription of a buddy.

1) whether it is always mandatory to subscribe to a buddy with "SUBSCRIBE" 
message to retrieve the presence of a buddy?

Yes

2) is there anyway we can directly retrieve the presence of a buddy without 
subscribing ( without sending SUBSCRIBE message )

Not by using SIP protocol. NOTIFY messages containing presence payload are sent 
as a result of a previous SUBSCRIBE.

I am afraid that if I try to get a presence of a buddy by SUBSCRIBE message 
then later I need to send an UNSUBSCRIBE to the buddy. if there is anyway to 
directly retrieve the presence of a buddy then we can avoid the UNSUBSCRIBE 
part.

There is no standard way of doing such thing. What you ask can be done if your 
client can somehow query the data stored by your server by other means than 
SIP. But this has nothing to do with the SIP protocol.

Yes there is a way. If the SUBSCRIBE sets the expiration for the subscription to 0 then you will get a single NOTIFY and no ongoing subscription. (This is standard behavior defined in 3265/6665.)

        Thanks,
        Paul

_______________________________________________
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

Reply via email to