My server name is xmpp
In the xmpp configuration in asterisk, I specified
serverhost = xmpp
pubsub_node = pubssub.xmpp
In hosts asterisk, I registered the nodes:
192168.1.1 xmpp
192.168.1.1 pubssub.xmpp
In hosts openfire:
127.0.0.1 pubssub.xmpp
127.0.0.1 pubssub
In the logs, the entry:
2020.06.23 13:33:07 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: pubssub.xmpp. Connection: org.jivesoftware.openfire.net.SocketConnection@75839010 socket: Socket [addr = / 127.0.0.1, port = 52991, localport = 5269] session: null
2020.06.23 13:33:07 org.jivesoftware.openfire.server.ServerDialback [Acting as Originating Server: Create Outgoing Session from: xmpp to RS at: pubssub.xmpp (port: 5269)] - Unable to create a new outgoing session