Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
ngboonseong #1
Member since Jan 2010 · 19 posts
Group memberships: Members
Show profile · Link to this post
Subject: agsXMPP SDK ConsoleClient not able to send message to MSN transport
Hi,
I tried out the ConsoleClient but when I tried to send message to my MSN, I encountered the following error.
I have tested out my OpenFire 3.6.4 and Kraken IM Gateway installation working fine with the Spark client.
Can advise how to programatically login to the MSN transport using the agsXMPP SDK  ?


Enter you Jid (user@server.com):
nbs@localhost
Enter password for 'nbs@localhost':
xxxxxxx

Logged in to server
Getting contacts now
Got contact: ngboonseong\40hotmail.com@msn.localhost
Got contact: ngboonseong@localhost
Got contact: ngboonseong\40rp2services.com@msn.localhost

All contacts received
Got presence from: nbs@localhost/MiniClient
type: available
status:

You are logged in to the server now.

Available commands are:
msg toJid text
status show{online, away, xa, chat} status
help
quit

Examples:
msg test@server.com Hello World
msg test@server.com/Office Hello World
status chat free for chat

msg ngboonseong\40rp2services.com@msn.localhost hi
Got message from: msn.localhost
message: You are not currently logged into the MSN transport.



Thanks.
Regards,
Boon Seong
Avatar
ngboonseong #2
Member since Jan 2010 · 19 posts
Group memberships: Members
Show profile · Link to this post
Manage to find the solution by setting the XmppClientConnection the AutoAgents attribute to true.
After which I am able to send message to my MSN using the following :

  // xmpp is XmppClientConnection
  xmpp.Send(
                    new Message(new Jid("ngboonseong\\40rp2services.com@msn.localhost"), MessageType.chat, "Hello, how are you?"));
Avatar
Alex #3
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This is not related to the AutoAgents property.

You have to register the transport once with your client or any other client. After successful registration you get logged in automatically by the server to MSN when you login to your XMPP account. Then you are able to send and receive messages.

Alex
Avatar
ngboonseong #4
Member since Jan 2010 · 19 posts
Group memberships: Members
Show profile · Link to this post
I see. Actually prior to that I have registered the transport using the Openfire Admin Console but it did not connect to the transport as
expected. That's really weird then....
Avatar
Alex #5
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
then it was a problem with registering the transport, or a server problem. Maybe the server was not able to connect to MSN and log you in for some reason.
When you are successfully logged in to the transport you should get a presence stanza for this.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS