I am trying to establish a S2S comunication between Openfire server and a Lync Server over XMPP. I am using Server Dialback in Openfire Security Settings. The AS (Authoritative Server) is the same as the OS (Originating Server).
The first scenario is the one that works fine, which is when I send a message from Openfire to Lync. You can see the messages exchanged between the two server in the XMPP OF to Lync - OF Forum.pdf that i attached.
The second scenario is the one that doesn't work as expected because that is an extra <stream>...</stream> message between the AS and the RS when this two are verifying the Key.
Analysing the XMPP Lync to OF - OF Forum.pdf The problem is that when Openfire sends the verify to the AS (first <db:verify> with green background in PDF), the next message should be the result from the AS (According to the source code of Openfire), but since Openfire receives a stream (background gray in PDF) from the AS and only after this one the result from the AS, it automatically returns invalid to the OS.
The Lync Server(AS) successfully validates the Key that receives from Openfire (RS) but when the Lync Server sends the valid token the Openfire has already sent to Lync (OS) the invalid token.
My question is: is this a problem of Openfire that can't handle a stream message between the verification of the Key or is a problem from Lync Server which shouldn't send the stream (gray background in PDF) ?