Cannot add anonymous user to my contacts (subscribe)

We have a setup with a mix of anonymous and logged in users. Both can access the server correctly and chat between each other. We are trying to take advantage of the presence information by subscribing an anonymous user to a logged in user via presence stanza:

Between logged in users I can send the following message and the loguser client receives correctly the demand:

<presence from='pixel@account.local.dev' to='loguser@account.local.dev' type='subscribe'/>"

When I do the same thing with an anonymous user the user never even receives this information. It's like if ejabberd was filtering this demand.

<presence from='pixel@account.local.dev' to='7816467401432723989579453@account.local.dev' type='subscribe'/>

We are working on ejabberd 15.02.

I tested this very same setup with an older version of ejabberd (2.1.11 ) and there the presence message is correctly rooted to the anonymous user. Is there a configuration to let these messages pass ?

THX for your help

Thanks to your comment, I've

Thanks to your comment, I've noticed there's a bug in ejabberd since it switched away from ejabberd 2.

The fix in source code is very simple, and I've tested it works now:
https://github.com/processone/ejabberd/commit/9a802185ad1dd05295a0e679fc...

Hello Badlop, I actually went

Hello Badlop,

I actually went down the same road debugging the ejabberd code and submitted the following pull request:
https://github.com/processone/ejabberd/pull/591

which got merged to the master branch.

This now works fine for me

Syndicate content