[ejabberd] Retrieve avatar from ejabberd

mitcheloc mitcheloc at gmail.com
Wed Sep 5 20:36:50 MSD 2007

Pedro & Badlop, Thanks for the replies.

I'd like to make this as compatible with existing clients as possible
and requiring the client to register would be a bit much. I think the
component approach would work better for me.

However, I'm not very familiar with component development. How would
the component receive the presence packet to compare the hash against?

Does this mean the component needs to be a friend on each user's list
or can ejabberd somehow copy the component on these packets?

I think, I saw somewhere that it's possible to hook into ejabberd's
internal xml router. If I can hook and catch these packets and have
them forwarded to my component then I could grab not only avatars for
local users, but also the avatar's of the user's friends...

Does this seem sensible?

On 9/5/07, Badlop <badlop at gmail.com> wrote:
> 2007/9/5, mitcheloc <mitcheloc at gmail.com>:
> > I'd like to retrieve the avatar for a jabber user from ejabberd and
> > display it on a web page. Using an image tag such as:
> >
> > <img src="http://jabber.server.com/avatars/?jid=test@jabber.org />
> mod_webpresence may be a solution.
> http://ejabberd.jabber.ru/mod_webpresence
> The benefit: no need to install your own php script and web server,
> since ejabberd publishes the image using an internal mini web server.
> For example, for the user bob at example.org, the avatar is:
> http://example.org:5280/presence/jid/bob/example.org/avatar/
> Problems that you may have with it:
> - only for local users
> - requires ejabberd svn
> - the user must register in the service using Service Discovery
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd

Mitchel Constantin
Snap - A desktop user interface for Asterisk

More information about the ejabberd mailing list