Anonymous users are not receiving messages...

As far as I know, I have anonymous login setup correctly...

{hosts, ["ChatServer"]}.
{auth_method, [internal, anonymous]}.
{host_config, "ChatServer", [{auth_method, [internal, anonymous]}, {anonymous_protocol, login_anon}]}.

I am able to connect anonymously (using Strophe) using:

connection.connect('chatserver', 'test', onConnect);

This seems to work correctly because the jid given after the connection is made shows up under online users in web admin for ejabberd.

The problem is that ejabberd does not appear to be relaying messages from registered users to the anonymous user. I have not tried to do so from another anonymous user yet...

The message gets processed from my registered user and falls into the "Offline Messages" queue for the anonymous user but is never sent to the client.

Any idea of what I could be doing wrong here?

Thanks,

JF

The client is logged in the

The client is logged in the server. But he is considered offline until he sends a presence stanza without a negative priority.

See step 2 of
http://xmpp.org/extensions/xep-0160.html#flow

And
http://tools.ietf.org/html/rfc6121#section-4.2.1

Syndicate content