[Telepathy] FW: Loudmouth register fails
Matti Reijonen
matti.reijonen at adminotech.com
Mon Mar 9 05:27:57 PDT 2009
I did my windows port for LM basically by manually applying a batch I found,
first I tried to run the batch, and when that didn't work I did it the hard way, so
maybe windows port is not the right word, it was manual run of that patch :) + some
additional small fix in the code, if I remember correctly.
I did found some instructions how to do it with msys and stuff, but I like to work in
Visual Studio, so I did not use them.. anyway it was not that much work after I found
this patch:
http://groups.google.com/group/loudmouth-dev/browse_thread/thread/4b6768da00852892
I wonder if the other examples of LM work,
So I should modify the example to send something like:
<iq type='get' id='some id'><query xmlns='jabber:iq:register'/></iq>
and read the answer and figure out how to register from there?
Just want to make sure the LM works first.. not sure if it's the fastest way to go.
Of course I would not be doing this if gabble connection to jabber server would
have succeeded in the first place.
With gnutls I do get this error, maybe the client needs first send that <start-tls> stanza:
*** Socket library initialising...
*** Checking for winsock 2.0 or above...
Setting ssl
*** Connecting to: jabber.se:5223
*** SRV lookup disabled for jabber.se
Going to connect to jabber.se:5223
Trying 130.236.254.153 port 5223...
Connection success (2).
*** Setting up SSL...
*** Could not begin SSL
*** GNUTLS handshake failed: Resource temporarily unavailable, try again.
Freeing up IOChannel and file descriptor
______________________________
Matti Reijonen
Software developer
ADMINO technologies
www.adminotech.com
> -----Original Message-----
> From: Sjoerd Simons [mailto:sjoerd.simons at collabora.co.uk]
> Sent: 9. maaliskuuta 2009 12:10
> To: Matti Reijonen
> Cc: telepathy at lists.freedesktop.org
> Subject: Re: [Telepathy] Loudmouth register fails
>
> On Mon, Mar 09, 2009 at 08:58:22AM +0100, Matti Reijonen wrote:
> > Loudmouth register fails
> >
> > Hi,
> >
> > I'm trying out telepathy and gabble on windows,
> > First tried gabble, but moved on testing loudmouth, because it's
> probably the
> > root of problems. I have build loudmouth without libasyncns to make
> it work
> > in windows and currently I'm testing lm-register example. I am able
> post
> > stream headers and receive server stream header. After that the
> server posts
> > features, and client sends register where server responces with 400
> bad
> > request..
>
> The lm-register example in loudmouth is broken, if you want to register
> you
> first need to query what fields the server needs.. The positive thing
> is that
> the Loudmouth library itself seems to work fine, you're happily sending
> and
> receiving stanzas :)
>
> > I have tried to run the example with and without gnutls. below is
> the whole
> > debug log, when I get loudmouth first working I get back to testing
> telepathy
> > framework in windows. My version of loudmouth is 1.2.4 that I have
> ported to
> > windows..
>
> If the gnutls variation correctly upgrade your connection to TLS and
> afterwards
> has the same error as plain LM, then your Loudmouth seems to work
> perfectly :)
>
> Did LM need a lot of porting work ? Afaik, it was already ported to
> win32
>
> Sjoerd
>
> > DEBUG LOG:
> >
> >
> > *** Socket library initialising...
> > *** Checking for winsock 2.0 or above...
> > *** Connecting to: jabber.se:5222
> > *** SRV lookup disabled for jabber.se
> > Going to connect to jabber.se:5222
> > Trying 130.236.254.153 port 5222...
> > Connection success (2).
> >
> > SEND:
> > -----------------------------------
> > <?xml version='1.0' encoding='UTF-8'?>
> > -----------------------------------
> > *** g_io_channel_write_chars
> > *** 38*** bytes_written
> > *** Sending stream header
> > *** lm_connection_send
> >
> > SEND:
> > -----------------------------------
> > <stream:stream version="1.0" xmlns="jabber:client"
> xmlns:stream="http://etherx.j
> > abber.org/streams" to="jabber.se" id="847872848982">
> > -----------------------------------
> > *** g_io_channel_write_chars
> > *** 132*** bytes_written
> >
> > RECV [437]:
> > -----------------------------------
> > '<?xml version='1.0'?>
> > <stream:stream xmlns='jabber:client'
> xmlns:stream='http://etherx.jabber.org/streams' id='269317488'
> from='jabber.se' version='1.0' xml:lang='en'>
> > <stream:features>
> > <starttls
> xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
> >
> > <mechanisms
> xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
> >
> <mechanism>DIGEST-MD5</mechanism>
> >
> <mechanism>PLAIN</mechanism>
> > </mechanisms>
> > <register
> xmlns='http://jabber.org/features/iq-register'/>
> >
> > </stream:features>'
> > -----------------------------------
> > *** Read: 437 chars
> > LM-PARSER: ATTRIBUTE: xmlns = jabber:client
> > LM-PARSER: ATTRIBUTE: xmlns:stream = http://etherx.jabber.org/streams
> > LM-PARSER: ATTRIBUTE: id = 269317488
> > LM-PARSER: ATTRIBUTE: from = jabber.se
> > LM-PARSER: ATTRIBUTE: version = 1.0
> > LM-PARSER: ATTRIBUTE: xml:lang = en
> > LM-PARSER: Trying to close node: stream:stream
> >
> > LM-PARSER: Have a new message
> > *** New message with type="stream:stream" from: jabber.se
> >
> > LM-PARSER: ATTRIBUTE: xmlns = urn:ietf:params:xml:ns:xmpp-tls
> > LM-PARSER: Trying to close node: starttls
> > LM-PARSER: ATTRIBUTE: xmlns = urn:ietf:params:xml:ns:xmpp-sasl
> > LM-PARSER: Trying to close node: mechanism
> > LM-PARSER: Trying to close node: mechanism
> > LM-PARSER: Trying to close node: mechanisms
> > LM-PARSER: ATTRIBUTE: xmlns = http://jabber.org/features/iq-register
> > LM-PARSER: Trying to close node: register
> > LM-PARSER: Trying to close node: stream:features
> > LM-PARSER: Have a new message
> > *** New message with type="stream:error" from: unknown
> > *** XMPP 1.0 stream received: 269317488
> > *** lm_connection_send
> >
> > SEND:
> > -----------------------------------
> > <iq type="set" id="401411405138"> <query xmlns="jabber:iq:register">
> <username>m
> > atti at jabber.se</username>
> > <password>password</password>
> > </query>
> > </iq>
> >
> > -----------------------------------
> > *** g_io_channel_write_chars
> > *** 150*** bytes_written
> >
> > RECV [264]:
> > -----------------------------------
> > '<iq from='jabber.se' id='401411405138' type='error'><query
> xmlns='jabber:iq:reg
> > ister'> <username>matti at jabber.se</username>
> > <password>password</password>
> > </query><error code='400' type='modify'><bad-request
> xmlns='urn:ietf:params:xml:
> > ns:xmpp-stanzas'/></error></iq>'
> > -----------------------------------
> > *** Read: 264 chars
> > LM-PARSER: ATTRIBUTE: from = jabber.se
> > LM-PARSER: ATTRIBUTE: id = 401411405138
> > LM-PARSER: ATTRIBUTE: type = error
> > LM-PARSER: ATTRIBUTE: xmlns = jabber:iq:register
> > LM-PARSER: Trying to close node: username
> > LM-PARSER: Trying to close node: password
> > LM-PARSER: Trying to close node: query
> > LM-PARSER: ATTRIBUTE: code = 400
> > LM-PARSER: ATTRIBUTE: type = modify
> > LM-PARSER: ATTRIBUTE: xmlns = urn:ietf:params:xml:ns:xmpp-stanzas
> > LM-PARSER: Trying to close node: bad-request
> > LM-PARSER: Trying to close node: error
> > LM-PARSER: Trying to close node: iq
> > LM-PARSER: Have a new message
> > *** New message with type="iq" from: jabber.se
> > Failed to register account 'matti at jabber.se@jabber.se' due to:
> >
> > ______________________________
> > Matti Reijonen
> > Software developer
> >
> > ADMINO technologies
> > www.adminotech.com<http://www.adminotech.com>
> >
>
> > _______________________________________________
> > telepathy mailing list
> > telepathy at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/telepathy
>
>
> --
> Quantum Mechanics is God's version of "Trust me."
More information about the telepathy
mailing list