Not update user state while using s2s

Hello.

I have 2 openfire servers (4.0.1)

Created all A and SRV records in dns, and successfully connected servers. I can add users, authenticate, send and recive messages.

Cleint1 connected to Server1

Client2 connected to Server2

I see what client state has changed on server1, when I change it on client1. Server1 send a tcp package from port 5269 to server2 and recived answer. On Cleint2 I see what client1 user’s state has been changed. I see what client state has changed on server2, when I change it on client2 too, but server2 dont send this information to** server1**, and on the client1 user’s state is not refreshed.

I test it using tcpdump - no packeges from server2 to** server1** when i change state on** client2**

No errors on debug log, only messages like this

016.02.17 14:51:52 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 7

2016.02.17 14:51:52 org.apache.mina.filter.ssl.SslFilter - Session Server7: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=63 cap=4096: 3C 69 71 20 74 79 70 65 3D 22 72 65 73 75 6C 74…]

2016.02.17 14:51:52 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 7

on both servers.

Any ideas what could be wrong?

Sorry for my bad english and thx for help)

Okey, iam fix it, but i dont know how its work…

I have 2 server

  1. Openfire 4.0.1 (updated from 3.7.1) with 1.8.0_66 Oracle Corporation – Java HotSpot™ Client VM on Windows Server 2008 / x86

Server Name: jabber.hq.mydomain.com

Host Name: NEON

xmpp.domain = jabber.hq.mydomain.com

xmpp.fqdn = jabber.hq.mydomain.com

  1. Openfire 4.0.1 with 1.7.0_95 Oracle Corporation – OpenJDK 64-Bit Server VM on Debian 8 x64.

Server Name: openfire.mydomain.com

Host Name: Openfire

xmpp.domain = openfire.mydomain.com

Dns records:

_xmpp-client._tcp.neon.jabber.hq.mydomain.com 0 100 5222

_xmpp-server._tcp.neon.jabber.hq.mydomain.com 0 100 5269

_xmpp._tcp.neon.jabber.hq.mydomain.com 0 100 5269

neon.jabber.hq.mydomain.com A 10.0.0.2

neon.hq.mydomain.com A 10.0.0.2

!!jabber.hq.mydomain.com NOT resolve!!

_xmpp-client._tcp.openfire.mydomain.com 0 100 5222

_xmpp-server._tcp.openfire.mydomain.com 0 100 5269

_xmpp._tcp.openfire.mydomain.com 0 100 5269

openfire.mydomain.com = 192.168.0.2

On this configuration all works fine.

If a change xmpp.domain on 2server from openfire.mydomain.com to mydomain.com (like 1server) - got a problem with precense status.

I cant understand why 1st server work fine without hostname in xmpp.domain, but 2server dont.

Any ideas?