Subscribing to an LJ Talk roster from another server
Michael Rogers
mrogers at limewire.com
Thu Dec 11 01:13:52 UTC 2008
Martin Atkins wrote:
> I have a few non-LJ accounts on my LJ roster, though I added them so
> long ago I can't tell you how I did it.
>
> Note that you can view the source for the plugins that provide the LJ
> Talk integration into DJabberd:
> http://code.sixapart.com/trac/djabberd/browser/trunk/DJabberd-LiveJournal
>
> This file is particularly interesting:
> http://code.sixapart.com/trac/djabberd/browser/trunk/DJabberd-LiveJournal/lib/DJabberd/Plugin/LiveJournal.pm
>
>
> I notice that it does some mangling of presence stanzas, so perhaps it's
> mangling the subscribe/subscribed stanzas and preventing them from
> getting transmitted.
Martin,
Thanks very much for the reply. It looks like hook_alter_presence is
only called for available/unavailable presence stanzas, so it's not
directly mangling the subscribe/subscribed stanzas. However, while
playing around with hook_alter_presence I discovered that
subscribe/subscribed stanzas will be dropped if the destination isn't
marked as available.
I suspect that's the cause of the problem I've been seeing: users on
other servers aren't locally marked as available, so djabberd drops
subscribe/subscribed stanzas addressed to them. If so, the problem can
hopefully be fixed if Presence overrides Stanza's
deliver_when_unavailable method to return 1.
Cheers,
Michael
More information about the Djabberd
mailing list