How long are you waiting? The transport only sends presence when it has connected to the MSN network for you. ie, the presence you receive from the transport JID is like what MSN users see. That means it could take up to a minute or so before you receive presence, depending on how fast your connection is, how big your MSN contact list is and various other factors.
What you're sending looks fine btw. --- James On 28/09/2005, at 8:52 AM, JS Bangs wrote: > I'm trying to write a customized drone client that needs to > automatically register and occasionally send messages through the > PyMSN transport. I have installed the transport with no problems and > am able to register--sort of--but I am unable to subscribe to the > transport's presence or otherwise get the transport to respond to my > presence. I'm following the use case outlined in > http://www.jabber.org/jeps/jep-0100.html#usecases-jabber-register, but > perhaps there's something I'm missing. I'm pasting an exact > transcription of the exchange between my client and the server below, > with only username and password changed. > > Thanks for anyone's help-- > > -- > JS Bangs > [EMAIL PROTECTED] > http://jaspax.com > > Transcript: > > SEND: <iq id='netjabber-3' to='msn_py.localhost' type='get'><query > xmlns='jabber:iq:register'/></iq> > > RECV: <iq from='msn_py.localhost' id='netjabber-3' > to='[EMAIL PROTECTED]/WCC' type='result'><query > xmlns='jabber:iq:register'><instructions>Please type your MSN Passport > ([EMAIL PROTECTED]) into the username field, your password and desired > base nickname. > For more information see > http://msn-transport.jabberstudio.org/docs/users</ > instructions><username>[EMAIL PROTECTED]</username><password/ > ><nick/><registered/></query></iq> > > SEND: <iq id='netjabber-4' to='msn_py.localhost' type='set'><query > xmlns='jabber:iq:register'><nick></nick><password>secret</ > password><username>[EMAIL PROTECTED]</username></query></iq> > > RECV: <iq from='msn_py.localhost' id='netjabber-4' > to='[EMAIL PROTECTED]/WCC' type='result'/> > > SEND: <iq type="set" id='netjabber-5'><query > xmlns='jabber:iq:roster'><item jid="msn_py.localhost" name="MSN > Transport" /></query></iq> > > SEND: <presence/> > > RECV: <iq type='set'><query xmlns='jabber:iq:roster'><item > ask='subscribe' jid='msn_py.localhost' name='MSN Transport' > subscription='from'/></query></iq> > > RECV: <iq from='[EMAIL PROTECTED]/WCC' id='netjabber-5' > to='[EMAIL PROTECTED]/WCC' type='result'/> > > SEND: <presence to='msn_py.localhost' type='subscribe'/> > > SEND: <presence to='msn_py.localhost' type='subscribed'/> > > SEND: <presence/> > > RECV: <iq type='set'><query xmlns='jabber:iq:roster'><item > ask='subscribe' jid='msn_py.localhost' name='MSN Transport' > subscription='from'/></query></iq> > > RECV: <iq type='set'><query xmlns='jabber:iq:roster'><item > ask='subscribe' jid='msn_py.localhost' name='MSN Transport' > subscription='from'/></query></iq> > > (After this the program simply repeats the previous five lines as it > enters a loop waiting for the transport to transmit its presence to > the client.) > _______________________________________________ > py-transports mailing list > py-transports@blathersource.org > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports >