powered by Jive Software

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 pubssub.xmpp
In hosts openfire: pubssub.xmpp 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 = /, 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
# pubssub.xmpp
# 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.