Closed GoogleCodeExporter closed 8 years ago
Right now it's not possible to respond to a NOTIFY request as the stack will
automatically send a 200 OK if all is OK. It's easy to patch doubango to allow
this scenario.
Could you please provide more information about your use case?
Original comment by boss...@yahoo.fr
on 4 Jan 2011 at 4:04
[deleted comment]
B is A's watcher.When A publish A's presence infomation,then B will receive a
NOTIFY which has A's PUBLISH presence info. I want to get A's new presence info
from NOTIFY message.
How to do?
Original comment by twbc.cla...@gmail.com
on 4 Jan 2011 at 4:46
final MySubscriptionSession subToA =
ServiceManager.getSipService().createPresenceSession("sip:A@doubango.org",
EVENT_PACKAGE_TYPE.PRESENCE);
subToA.subscribe();
From "SipService::OnSubscriptionEvent(SubscriptionEvent e)" watch for
"tsip_i_notify" event. To check that it's the notify tied to the SUBSCRIBE
request sent for A:
"e.getSession() == subToA.getId()"
Original comment by boss...@yahoo.fr
on 4 Jan 2011 at 4:55
NOTIFY message is sent by Server.
Will SipService::OnSubscriptionEvent(SubscriptionEvent e) also be called?
A--PUBLISH-->Server--NOTIFY-->B
Original comment by twbc.cla...@gmail.com
on 4 Jan 2011 at 5:02
The process as follow.
UE#2 will receive a NOTIFY from Server.No subscribe.
Original comment by twbc.cla...@gmail.com
on 4 Jan 2011 at 5:06
Attachments:
off course. If you receive a NOTIFY request the stack will call this function
(asynchronously) before sending the 200 OK.
Original comment by boss...@yahoo.fr
on 4 Jan 2011 at 5:07
Thank you very much!btw,Why is "off course" rather than "of course".
Original comment by twbc.cla...@gmail.com
on 4 Jan 2011 at 5:15
I don't follow you. The UE should never receive a SUBSCRIBE message it only get
a NOTIFY from the server. When IMSdroid receives SUBSCRIBEs from a remote peer
it will ignore them.
Original comment by boss...@yahoo.fr
on 4 Jan 2011 at 5:16
You mean that as long as UE receive a
NOTIFY,SipService::OnSubscriptionEvent(SubscriptionEvent e) will be called? UE
do not send a SUBSCRIBE.
Original comment by twbc.cla...@gmail.com
on 4 Jan 2011 at 5:22
To receive a NOTIFY you MUST send a SUBSCRIBE.
Original comment by boss...@yahoo.fr
on 4 Jan 2011 at 5:39
The NOTIFY is produced and sent by server.
A publish his presence info.B will receive a NOTIFY from server
automatically.Before B receives this NOTIFY,B do not SUBSCRIBE.B is
notified,not subscribe.
This case,SipService::OnSubscriptionEvent(SubscriptionEvent e) will be called?
Original comment by twbc.cla...@gmail.com
on 4 Jan 2011 at 5:52
yep
Original comment by boss...@yahoo.fr
on 11 Jan 2011 at 12:52
Original issue reported on code.google.com by
nieyaol...@gmail.com
on 29 Dec 2010 at 12:08