sendxmpp Jabber, conecta timeout

0

Eu registrei uma conta do Jabber no servidor xmpp.jix.im. Eu instalei um aplicativo sendxmpp para enviar mensagens do Jabber. Eu escrevi um script simples para enviar mensagens, aqui está:

#!/bin/bash
to=$1
msg=$2
sendxmpp -n -v -d -u [email protected] -p password-j xmpp.jix.im -m hello [email protected]

No entanto, tenho alguns problemas ao executar o script, não recebo mensagens. Aqui está a saída do script:

XML::Stream: new: hostname = (localhost)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x12c2a40))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x21ac810))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x224da30))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x223f090))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x2199a00))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x12c2980))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x12c2860))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x12c2830))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x12c2818))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x12c2b48))
XMPP::Conn: xmppCallbackInit: stop
sendxmpp: ssl_verify: 0
sendxmpp: tls_ca_path: 
XMPP::Conn: Connect: host(xmpp.jix.im:5222) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
XML::Stream: Connect: Got a connection
XML::Stream: Send: (<?xml version='1.0'?><stream:stream version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='xmpp.jix.im' from='localhost' xml:lang='en' >)
XML::Stream: Read: buff(<?xml version='1.0'?><stream:stream id='17217592136130365441' version='1.0' xml:lang='en' xmlns:stream='http://etherx.jabber.org/streams' to='localhost' from='xmpp.jix.im' xmlns='jabber:client'>)
XML::Stream: _handle_root: sid(newconnection) sax(XML::Stream::Parser=HASH(0x12c34d8)) tag(stream:stream) att( xml:lang en id 17217592136130365441 xmlns jabber:client xmlns:stream http://etherx.jabber.org/streams version 1.0 to localhost from xmpp.jix.im )
XML::Stream: Read: buff(<stream:error><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>)
XML::Stream: Node: _handle_element: sid(17217592136130365441) sax(XML::Stream::Parser=HASH(0x12c34d8)) tag(stream:error) att( )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(17217592136130365441) sax(XML::Stream::Parser=HASH(0x12c34d8)) tag(host-unknown) att( xmlns urn:ietf:params:xml:ns:xmpp-streams )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(17217592136130365441) sax(XML::Stream::Parser=HASH(0x12c34d8)) tag(host-unknown)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(17217592136130365441) sax(XML::Stream::Parser=HASH(0x12c34d8)) tag(stream:error)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Node: _handle_close: sid(17217592136130365441) sax(XML::Stream::Parser=HASH(0x12c34d8)) tag(stream:stream)
XML::Stream: Node: _handle_close: check( -1 )
XML::Stream: Node: _handle_close: rootTag(stream:stream) tag(stream:stream)
XML::Stream: Process: block(0)
XML::Stream: Read: buff()
XML::Stream: Read: ERROR
XML::Stream: Process: block(0)
XML::Stream: Process: block(1)
XML::Stream: Process: block(1)
XML::Stream: Process: block(1)
XML::Stream: Process: block(1)
XML::Stream: Process: block(1)

Alguém pode ajudar? O que estou fazendo errado?

    
por Brian Brown 15.06.2018 / 20:42

0 respostas

Tags