Question regarding processing of "subscribe" in nist-sip-presence-proxy

"MALLET Lionel" <[email protected]>
Newsgroups gmane.comp.voip.nist-sip
Message-ID <83735C079165F240916D0D1845F5974C9010FE@VGEEXC01.CORP.DS.GEMPLUS.COM>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.