[ejabberd] need help with command-line messaging like sendxmpp

Eric Wood eric at interplas.com
Fri Jun 27 00:06:34 MSD 2008


Thanks Adam,

Here's the command I use:
./sendxmpp -d -s "test" -m "test2" -u "eric at interplas.com" -p jabber -j 
jabberdev.tracepackage.com:5222 eric at interplas.com

I set the componentname in the sendxmpp script to "interplas.com" which the 
debug output confims using iq from="interplas.com" instead of iq 
from="jabberdev.tracepackage.com".  But it still times out waiting on an ID 
or something:

XMPP::Conn: Connect: connection made
XML::Stream: SetCallBacks: tag(node) func(CODE(0x97541a4))
sendxmpp: Connect: 1
XMPP::Conn: AuthIQAuth: old school auth
XMPP::Conn: SendAndReceiveWithID: object(Net::XMPP::IQ=HASH(0x97545d0))
XMPP::Conn: SendWithID: id(netjabber-0)
XMPP::Conn: SendWithID: in(<iq type='get'><query 
xmlns='jabber:iq:auth'><username>eric at interplas.com</username></query></iq>)
XMPP::Conn: RegisterID: tag(iq) id(netjabber-0)
XMPP::Conn: SendWithID: out(<iq id='netjabber-0' type='get'><query 
xmlns='jabber:iq:auth'><username>eric at interplas.com</username></query></iq>)
XMPP::Conn: SendXML: sent(<iq id='netjabber-0' type='get'><query 
xmlns='jabber:iq:auth'><username>eric at interplas.com</username></query></iq>)
XML::Stream: Send: (<iq id='netjabber-0' type='get'><query 
xmlns='jabber:iq:auth'><username>eric at interplas.com</username></query></iq>)
XMPP::Conn: SendAndReceiveWithID: sent with id(netjabber-0)
XMPP::Conn: WaitForID: id(netjabber-0)
XMPP::Conn: ReceivedID: id(netjabber-0)
XMPP::Conn: ReceivedID: nope...
XMPP::Conn: WaitForID: haven't gotten it yet... let's wait for more packets
XMPP::Conn: Process: timeout(1)
XML::Stream: Read: buff(<iq from='interplas.com' id='netjabber-0' 
type='error'><error code='503' type='cancel'><service-unavailable 
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>)

Port 5222 isn't blocked by the firewall so I don't know what's going on. 
Thanks for everyone's help at this.

-Eric Wood


On Thursday, June 26, 2008 1:02 PM, Adam Kalsey wrote:
> On Thu, Jun 26, 2008 at 8:52 AM, Eric Wood <eric at interplas.com> wrote:
>> 'componentname' argument in many places in the Net::XMPP files as well as
>> the sendxmpp perl script.  I just don't see exactly how to do it.  Maybe 
>> my
>
> You do it in the Connect method of Net::Jabber::Client.
> my $status = $client->Connect(hostname=>$host,componentname=>$server);



More information about the ejabberd mailing list