Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
-glen- #1
Member since Sep 2009 · 16 posts
Group memberships: Members
Show profile · Link to this post
Subject: Chat to yahoo messenger user's
Hello, There Experts
I am new in using agsxmpp library..and so far,i've already created a chat app. using openfire server.without any components added...and am satisfy with my app..

by this time i want to add some features:and that's,is to connect to yahoo messenger in order to send some messages with my yahoo friends..i tried to search how to do this here in the forum but i cnt hardly understand the logic..if where do i start...

i already installed IM gateway..

this my server config. for installed gateway..

the gateway has a default Host and Port.
Host:scs.msg.yahoo.com
Port:5050

i did not change anything all was default..and then i go to Server Settings - External Component
and then i enabled the service..this is my settings:
Port:5050 - i dnt know if this correct.
Default shared secret:agsxmpp

and below settings:
Allowed to connect:Anyone

and i add a subdomain i put Yahoo for my subdomain and agsxmpp for my shared secret

This is all i've understand so far in this forum..
i tried to connect using miniclient without any modification on the miniclient code..and this is what i've got:

XML Log:
SEND: <stream:stream to='dbvismin2' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="dbvismin2" xml:lang="en" id="b0c4bda1" >
RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><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><mechanism>CRAM-MD5</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth" /><register xmlns="http://jabber.org/features/iq-register" /></stream:features>
SEND: <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
SEND: <stream:stream to='dbvismin2' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="dbvismin2" xml:lang="en" id="b0c4bda1" >
RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>CRAM-MD5</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth" /><register xmlns="http://jabber.org/features/iq-register" /></stream:features>
SEND: <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="DIGEST-MD5" />
RECV: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09ImRidmlzbWluMiIsbm9uY2U9IlNiVjNMMkVxQ1dRQW5nSnVxOE5iN2ErcERWbFY1NmZVVlBuMWk1cGMiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
SEND: <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9ImdsZW4iLHJlYWxtPSJkYnZpc21pbjIiLG5vbmNlPSJTYlYzTDJFcUNXUUFuZ0p1cThOYjdhK3BEVmxWNTZmVVZQbjFpNXBjIixjbm9uY2U9ImIzYWJjZDRiZmIzYTUyYjBlZTIzOTM2ZDhhOTJmMTRmZTYyZTE2NTU3ZDk3NzBlMjBhNTRlMDE2NWYzNDcwZjgiLG5jPTAwMDAwMDAxLHFvcD1hdXRoLGRpZ2VzdC11cmk9InhtcHAvZGJ2aXNtaW4yIixjaGFyc2V0PXV0Zi04LHJlc3BvbnNlPWMzYjVkZTRkYTAzZTA0MGNkYThkOGNiZWJmMWJmNDll</response>
RECV: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD1hNjAzYThjYTYxZWUzODgzNmE5NGRkMjkzYmZiOTYwNw==</success>
SEND: <stream:stream to='dbvismin2' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="dbvismin2" xml:lang="en" id="b0c4bda1" >
RECV: <stream:features xmlns:stream="http://etherx.jabber.org/streams"><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" /><session xmlns="urn:ietf:params:xml:ns:xmpp-session" /></stream:features>
SEND: <iq id="agsXMPP_1" type="set" to="dbvismin2"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>MiniClient</resource></bind></iq>
RECV: <iq xmlns="jabber:client" from="dbvismin2" id="agsXMPP_1" to="dbvismin2/b0c4bda1" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>glen@dbvismin2/MiniClient</jid></bind></iq>
SEND: <iq id="agsXMPP_2" type="set" to="dbvismin2"><session xmlns="urn:ietf:params:xml:ns:xmpp-session" /></iq>
RECV: <iq xmlns="jabber:client" from="dbvismin2" id="agsXMPP_2" to="glen@dbvismin2/MiniClient" type="result"><session xmlns="urn:ietf:params:xml:ns:xmpp-session" /></iq>
SEND: <iq id="agsXMPP_3" type="get" to="dbvismin2"><query xmlns="jabber:iq:agents" /></iq>
SEND: <iq id="agsXMPP_4" type="get"><query xmlns="jabber:iq:roster" /></iq>
RECV: <iq xmlns="jabber:client" from="dbvismin2" id="agsXMPP_3" to="glen@dbvismin2/MiniClient" type="error"><query xmlns="jabber:iq:agents" /><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq>
RECV: <iq xmlns="jabber:client" id="agsXMPP_4" to="glen@dbvismin2/MiniClient" type="result"><query xmlns="jabber:iq:roster"><item subscription="both" jid="johanna@dbvismin2" name="johanna"><group>Friends</group></item><item subscription="both" jid="yahoo.dbvismin2" name="Yahoo! Transport"><group>Friends</group></item><item subscription="both" jid="grace@dbvismin2" name="Greeg"><group>Friends</group></item><item subscription="both" jid="joseph@dbvismin2" name="joseph"><group>Friends</group></item><item subscription="both" jid="marjen@dbvismin2" name="Romar"><group>Friends</group></item><item subscription="both" jid="gabs@dbvismin2" name="gabs"><group>Friends</group></item><item subscription="both" jid="loel@dbvismin2" name="loel"><group>Friends</group></item><item subscription="both" jid="liele@dbvismin2" name="liele"><group>Friends</group></item></query></iq>
SEND: <presence><status /><priority>10</priority></presence>
SEND: <presence><status /><priority>10</priority></presence>
RECV: <presence xmlns="jabber:client" from="matsalams@dbvismin2" id="KFY8C-25" to="glen@dbvismin2/MiniClient" type="unavailable"><x xmlns="vcard-temp:x:update"><photo>500abc1f0a8634bf109c3c03ef09241a13128347</photo></x><x xmlns="jabber:x:avatar"><hash>500abc1f0a8634bf109c3c03ef09241a13128347</hash></x></presence>
RECV: <presence xmlns="jabber:client" from="yahoo.dbvismin2" to="glen@dbvismin2/MiniClient" type="unavailable"><status /></presence>
RECV: <presence xmlns="jabber:client" from="xandrex@dbvismin2" id="82478-28" to="glen@dbvismin2/MiniClient" type="unavailable"><x xmlns="vcard-temp:x:update"><photo>d870e4417c673978256e48849c70567c545ee166</photo></x><x xmlns="jabber:x:avatar"><hash>d870e4417c673978256e48849c70567c545ee166</hash></x></presence>
RECV: <presence xmlns="jabber:client" from="baddz_aiza@dbvismin2" id="fl8Pj-35" to="glen@dbvismin2/MiniClient" type="unavailable"><x xmlns="vcard-temp:x:update"><photo>3d5796bc80a668257417c577d325f57c5973b74c</photo></x><x xmlns="jabber:x:avatar"><hash>3d5796bc80a668257417c577d325f57c5973b74c</hash></x></presence>
RECV: <presence xmlns="jabber:client" from="marjen@dbvismin2" id="AV5rC-39" to="glen@dbvismin2/MiniClient" type="unavailable"><x xmlns="vcard-temp:x:update"><photo>7786311f14299c007b061285a58e6e28c24728d4</photo></x><x xmlns="jabber:x:avatar"><hash>7786311f14299c007b061285a58e6e28c24728d4</hash></x></presence>
RECV: <presence xmlns="jabber:client" from="loel@dbvismin2" id="n77jb-26" to="glen@dbvismin2/MiniClient" type="unavailable"><x xmlns="vcard-temp:x:update"><photo>7dd1c3daf8b03eb18673ad50ab6d994dc9a4c0fb</photo></x><x xmlns="jabber:x:avatar"><hash>7dd1c3daf8b03eb18673ad50ab6d994dc9a4c0fb</hash></x></presence>
RECV: <presence xmlns="jabber:client" from="liele@dbvismin2" id="QYgx5-63" to="glen@dbvismin2/MiniClient" type="unavailable"><x xmlns="vcard-temp:x:update"><photo>81e0881e8a0949f436909b60001c1a99e6bb4258</photo></x><x xmlns="jabber:x:avatar"><hash>81e0881e8a0949f436909b60001c1a99e6bb4258</hash></x></presence>
RECV: <message xmlns="jabber:client" from="yahoo.dbvismin2" to="glen@dbvismin2" type="error"><body>Access to your Yahoo! account is locked.  Please visit https://login.yahoo.com/config/login</body></message>

For now,this all i undestand..i dont know where to start and what are the things to consider in order to successfully connected to yahoo and chat with my friends..

I hope you can guide me..showing step by step configuration or do i need to modify the miniclient code?..
Many thanks:
glen
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
The jabber address of your gateway is yahoo.dbvismin2 according to your logs.
You have to register with this gateway once from your client. During the registration you send your Yahoo nickname and password to the gateway. The gateway now stores your Yahoo login data. On every login to your XMPP account the gateway automatically logins you to Yahoo when your server setup is correct.
Exchange of messages and presence is exactly the same as with XMPP users. Only the format of the addresses is yahoo_user@gateway_Jid. In your case myyahooID@yahoo.dbvismin2.

Alex
Avatar
-glen- #3
Member since Sep 2009 · 16 posts
Group memberships: Members
Show profile · Link to this post
Thank you for the quick reply Mr. Alex

During the registration you send your Yahoo nickname and password to the gateway.

what nickname did you mean?is it my existing yahoo account?

and 1 more question sir: what is the correct setup of the server?i had showed you the setup of the gateway in my first post.please tell me if that was wrong.and can u give me a hint or some code snippet, on how to register to my transport?


thank you alex,
glen
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by -glen- on 2009-10-17, 10:40:
1255768807

I meant your Yahoo Id.

Quote by -glen- on 2009-10-17, 10:40:
1255768807

for registration take a look at this thread:
http://forum.ag-software.de/thread/704

Please understand that we don't offer help to the different servers here in the forums. We can do this based on our prodessional services and cosulting.
You should ask this question in the Openfire forums.

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