O-Fire server refusing connection from OPenSIPs sip-xmpp server

I’m new to openfire. I have openfire running. I have opensips sip/im server with sip to xmpp gatewway support. OPensips server has a xmpp component that need to talk to a xmpp server to do the actaul sip-xmpp gateway function. Opensips will traslate sip to xmpp and back. The problem is opensips server is trying to make a TCP/IP connection to openfire S2S port 5347 ( changed the default 5269) because opensips is trying to talk to external xmpp server via port 5347 only.

I see the Earning log on openfire server like this repeatdly

2009.06.17 13:00:50 Closing session due to incorrect hostname in stream header. Host: dsdev-xmpp.smsi.com. Connection:

org.jivesoftware.openfire.net.SocketConnection@1de5b2d socket: Socket[addr=/172.16.0.139,port=42382,localport=5347] session: null

2009.06.17 13:00:50 Closing session due to incorrect hostname in stream header. Host: dsdev-xmpp.smsi.com. Connection:

org.jivesoftware.openfire.net.SocketConnection@ecf1ca socket: Socket[addr=/172.16.0.139,port=42383,localport=5347] session: null

172.160.139 is my opensips server trying to open the server 2 server port. But openfire is refusing it because of incorrect hostname.

can any one please help me ?