[ejabberd] Ejabberd + Bandersnatch Presence table not being updated

Badlop badlop at gmail.com
Tue Apr 5 03:22:02 MSD 2011


2011/4/1 muhammad mohsin <muhammad.mohsin at tradekey.com>:
> I have setup bandersnatch + ejabberd 2.1.6, I found it only can record the
> message into the message table, the user and presence tables stay empty. Do
> I need to do some extra configuration to set that up?

No configuration changes in ejabberd.

I made this change:

--- a/src/mod_service_log.erl
+++ b/src/mod_service_log.erl
@@ -68,6 +68,7 @@ log_packet(From, To, {xmlelement, Name, Attrs, Els}, Host) ->
     FixedPacket = {xmlelement, Name, NewAttrs, Els},
     lists:foreach(
       fun(Logger) ->
+             ?INFO_MSG("I'll log to Logger ~p~nPacket: ~p", [Logger,
FixedPacket]),
              ejabberd_router:route(
                ServerJID,
                #jid{user = "", server = Logger, resource = "",

When a user changes his presence, an INFO_MSG is added to ejabberd.log


---
Badlop
ProcessOne


More information about the ejabberd mailing list