Presence Subscription Notification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



But upon logging in of UserA, he had already send a request right?

--- On Tue, 8/19/08, Benny Prijono <bennylp at pjsip.org> wrote:
From: Benny Prijono <bennylp@xxxxxxxxx>
Subject: Re: Presence Subscription Notification
To: "pjsip list" <pjsip at lists.pjsip.org>
Date: Tuesday, August 19, 2008, 4:00 PM

On Tue, Aug 19, 2008 at 3:39 AM, Joseph Maiquez <josephmaiquez at yahoo.com> wrote:


Hi Benny,



here is the situation:
UserA and UserB are not friends.
UserB is offline.
UserA add and request presence subscription to UserB.
When UserB logged in, The callback on_incoming_subscription is not called. <- the problem

If UserA will send another request while UserB is online, the callback is called.


Sorry for the late reply. I thought this requires some coding to reproduce it, but turns out perhaps this is just a misunderstanding.


The on_incoming_subscribe() is only called when incoming SUBSCRIBE is received (as the name suggest!). So in your cause above, even if UserB logs in, the callback will not be called if UserB does not send SUBSCRIBE to UserA.


Cheers
?Benny


_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip at lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080819/28c0a902/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux