[JDEV] storing presence extensions
Peter Saint-Andre
stpeter at jabber.org
Wed Apr 30 22:15:00 CDT 2003
On Fri, Apr 25, 2003 at 11:20:59AM -0600, Peter Millard wrote:
> Mathias Waag wrote:
> > i am using an extension in the presence element (type is subscribe) to
> > subscribe to different presence informations like location, client info,
> > principal status, ....
> > <presence to='test1 at localhost' type='subscribe'>
> > <x xmlns='paa:x:subscription'>
> > <ns type='add'>paa:x:location</ns>
> > </x>
> > </presence>
> > if test1 is online he will receive the presence element including the
> > extension. if he is not online, the presence element will be stored in xdb.
> > but wihtout the paa:x:subscription extension. is there a way to tell the
> > server to store the presence element including the extensions?
>
> There is no way to tell the server this via protocol.... In the IETF drafts, it
> says the server must store "the request" and send it when the user becomes
> available. It does NOT specify what "the request" is.
>
> IMO, Servers should be saving the entire packet and sending it, but I'm 99% sure
> that this is not the way jabberd-1.4's JSM does this (it just stores a "bit" in
> the roster item).
Yes, I'd agree that the entire stanza should be stored, but existing
implementations just set a flag and send a minimal subscription request
on login (the extended info is not retained). I'll make this more
explicit in the I-D.
Peter
--
Peter Saint-Andre
Jabber Software Foundation
http://www.jabber.org/people/stpeter.php
More information about the JDev
mailing list