When two Jabber clients (XMPP) are connected, only one can receive messages, both can send

I have a Windows XMPP client - PSI and android one - IMO. I am connected to the same custom server using two different resources (the host name on the desktop, I don’t know what IMO uses as a resource). When someone sends me a message, only the desktop can receive it. Android client can send only.

What needs to be configured for clients to be able to simultaneously receive messages on both clients?

+4
source share
2 answers

Figured it out. XMPP has priority assigned to resources. See 11.1 at http://xmpp.org/rfcs/rfc3921.html#rules . Valid Range: -127 .. +128

IMO sends priority 1 (at least in my version). By setting the priority in the PSI to -120, my phone client always received a message. I will play with priorities to take advantage of the automatic shutdown feature, which lowers priority.

+2
source

If you have administrator rights on the Openfire server, setting the system property "route.all-resources" to "true" should allow all connected clients to receive a message sent to Jabber ID. This worked in my case.

+1
source

Source: https://habr.com/ru/post/1444430/


All Articles