Re: Question regarding processing of "subscribe" in nist-sip-presence-proxy
"M. Ranganathan" <[email protected]>
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
Lionel, No that is not the standard. Its not defined in the standard in fact. We just took short cuts. Would you like to evolve it to be a true presence / proxy server ? It would be a good project to work on. Lots of things need to be done there. Do you have developer access to the project? Regards Ranga MALLET Lionel wrote: > Hello, > > <disclaimer> > I'm quite new to this list so I may be asking questions that have > already been asked a while ago. Please forgive me if I do so. > </disclaimer> > > I have a question regarding the way the subscribe request are > processed in the nist-sip-presence-proxy. The comment in the source > code (PresenceServer.java:processSubscribeRequest(SipProvider > sipProvider, Request request, ServerTransaction serverTransaction)) > states that: > > * <h3>Policy for forwarding subscriptions.</h3> <ol> > * <li>If the Notifier is registered and is publishing, the > subscritption > * ends here. WatcherInfo is updated and PS sends notifies > to subscriber > * according to authorization. Note, the default process > should be that > * the notifiers are all registered from the > registrations.xml file, so > * they don't have to be online.</li> > * <li>If the notifier is registered, but the subscriber > requires some non-pidf > * notification format (such as Windows Messengers xpidf) or > has other > * special requirements that the PS can't understand, the > subscription is > * forwarded statelessly to notifyer.</li> > * <li>If user is not registered, but the domain indicates that > we are > * responsible for him, a 404 is sent (by Proxy)</li> > * </ol> > What I'm concerned about is the processing when the user is not > registered (yet) to the proxy. Is this a design choice not to store > the notifier or is this defined by some standard? Why not storing the > notifier so that when it becomes registered on the proxy the > subscriber is notified immediately? It seems a lot easier than having > to store all users in our domain in the registrations.xml file. > > I'm asking this question before contributing any source code to > implement this behavior. > > BTW I've also updated the source code to remove the Java deprecation > warnings and I will be glad to contribute this code as well. > > Best regards, > ------------------------------------------------------------------------ > > *Lionel Mallet/ - Gemalto/* > Tel: +33 (0)4 42 36 59 70 > >------------------------------------------------------------------------ > >_______________________________________________ >nist-sip mailing list >[email protected] >http://www-x.antd.nist.gov/mailman/listinfo/nist-sip > > -- M. Ranganathan Advanced Networking Technologies Division, National Institute of Standards and Technology (NIST), 100 Bureau Drive, Stop 8920, Gaithersburg, MD 20899. tel:301 975 3664 , fax:301 590 0932 http://w3.antd.nist.gov/ Advanced Networking Technologies For the People!