[ejabberd] ejabberd behavior b/w user disconnected vs user unavailable

Gaurav Jain monkeyfdude at gmail.com
Thu Mar 12 19:35:00 MSK 2015


Thanks you very much!

On Thu, Mar 12, 2015 at 9:28 AM, Holger Weiß <holger at zedat.fu-berlin.de>
wrote:

> * Gaurav Jain <monkeyfdude at gmail.com> [2015-03-12 08:55]:
> > I did look at the code and I found unset_presence_hook is called with
> four
> > args, User, Server, Resource and Status. It does not give the full
> Presence
> > packet to the hook. I wanted to inject some data in the presence packet
> > sent by client and have a hook process that data.
>
> The Status argument contains the optional <status/> element of the
> <presence/> stanza, for what it's worth.
>
> > how can I get access to full packet.
>
> You can access all stanzas (including any unavailable <presence/>
> stanzas) sent by the client via the 'user_send_packet' hook.
>
> Holger
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20150312/ca402bd5/attachment.html>


More information about the ejabberd mailing list