Can't connect pubsub from asterisk

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

PubSub enabled,
If you comment entries in the openfire host
#127.0.0.1 pubssub.xmpp
#127.0.0.1 pubssub
the following entries appear in the logs:
2020.06.23 15:48:16 org.jivesoftware.openfire.net.SocketUtil - Unable to create a socket connection to XMPP domain ‘pubssub.xmpp’: Unable to connect to any of its remote hosts.
2020.06.23 15:48:16 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Authenticate local domain: ‘xmpp’ to remote domain: ‘pubssub.xmpp’] - Unable to authenticate: Fail to create new session.