ejabberd icon indicating copy to clipboard operation
ejabberd copied to clipboard

Broadcast presence change after multicast presence packet

Open mremond opened this issue 9 years ago • 7 comments

After having send a presence multicast directed presence, we need to keep track of it in c2s state to broadcast presence changes.

When sending a directed presence multicast packet, we need to keep track of all of the recipient as directed presence target.

If you send this multicast presence, you are able to join two MUC rooms with a single packet:

<presence to='multicast.localhost'>
    <addresses xmlns='http://jabber.org/protocol/address'>
        <address type='bcc' jid='[email protected]/Usernick'/>
        <address type='bcc' jid='[email protected]/Usernick'/>
    </addresses>
</presence>

However, when you disconnect, you are still seen as online in those rooms.

Discussion on StackOverflow: http://stackoverflow.com/questions/31781137/how-to-join-multiple-rooms-by-just-sending-one-presence-message-to-ejabberd-se

mremond avatar Aug 03 '15 07:08 mremond

I have ejabberd 15.07 setup and have enabled mod_multicast module , for sending multicast presence packet which is not working and i also monitor exceptionally high cpu usage on server .

Nitin3589 avatar Sep 30 '15 12:09 Nitin3589

@Nitin3588 You should update to 15.09 as we fix an issue that could relate to your problem.

mremond avatar Sep 30 '15 13:09 mremond

15.09 includes some fixes. broadcast of the unavailable presence remains to be done. a XEP update was submitted and we are waiting for approval

cromain avatar Oct 23 '15 14:10 cromain

For the record, depends on https://github.com/xsf/xeps/pull/41

mremond avatar Oct 23 '15 14:10 mremond

@alexeyshch The XEP has been updated. The change can now be added to ejabberd 😄

mremond avatar Jun 29 '16 08:06 mremond

Was this ever resolved?

MattFoley avatar Jan 30 '17 16:01 MattFoley

Have you progressed on it?

Neustradamus avatar Apr 13 '21 12:04 Neustradamus