[ejabberd] using external components with ejabberdp

Alexey Shchepin alexey at sevcom.net
Wed Mar 3 00:48:32 MSK 2004


Hello, Marshall!

On Mon, 1 Mar 2004 20:22:31 -0800, you said:

 MR> i'm writing an external component to work with ejabberd.  i have the usual
 MR> stuff in the config file:
    
 MR>           {8888, ejabberd_service, [{hosts,
 MR> ["whatever.jabber.dbc.mtview.ca.us"], [{password, "secret"}]}]}

 MR> here's what my client-side log shows when i connect and try to
 MR> authenticate:
    
 MR>    (jlib::connect) Socket:'sock4' Server:'jabber.dbc.mtview.ca.us' 
 MR>        ConnectionID:'1'
 MR>    (jlib::outmsg) (1) '<stream:stream
 MR>        xmlns:stream='http://etherx.jabber.org/streams'
 MR>        xmlns='jabber:component:accept' xml:lang='en'
 MR>        to='jabber.dbc.mtview.ca.us'>'
 MR>    Waiting for stream
 MR>    (jlib::inmsg) (1) '<?xml version='1.0'?><stream:stream
 MR>        xmlns:stream='http://etherx.jabber.org/streams'
 MR>        xmlns='jabber:component:accept' id='887731267'
 MR>        from='jabber.dbc.mtview.ca.us'>'
 MR>    (jlib::got_stream) Session ID = 887731267, Use SASL = 0
 MR>    Got stream
 MR>    (jlib::send_auth) username:'staging' password:'testing' resource:''
 MR>    (jlib::outmsg) (1) 'handshake {} {}
 MR>        2b837d65d8c133ec580f6100f905861aaf5004a6 {} {}'

I think last lines should look like this:

    (jlib::outmsg) (1) '<handshake>2b837d65d8c133ec580f6100f905861aaf5004a6</handshake>'

I.E. it looks like tkabber jabberlib missing wrapper:createxml call, I'll
commit fix to tkabber now, please test it.


More information about the ejabberd mailing list