[JDEV] Adding MSN contacts

prasanta lenka pklenka at yahoo.com
Wed May 1 02:06:09 CDT 2002


Try this and let me know if it works or not

first send
      <presence type="seubscribe" to="username"/>

then send

<iq type="set"><query xlns="jabber:iq:roster"><item
jid="username" name =
"nickname"><group>groupname</group></item></query></iq>

Thanks

prasant

--- Parankush  Das <cparankush at rediffmail.com> wrote:
> 
> 
> On Mon, 29 Apr 2002 tom  drake wrote :
> >Hi All,
> >
> >I have installed jabber-1.4.2 and msn-transport-1.1
> in my system. 
> >I am writting my own client and i'm having  problem
> when i try to 
> >add MSN contact. I send the following strings to
> jabber, but the 
> >contact does not get a request for subscription.
> >
> ><iq id="JCOM_7" type="set"><query
> xmlns="jabber:iq:roster"><item 
> >jid="jack%hotmail.com at msn.mydomain"
> name="jack"/></query></iq>
> >
> ><presence to="jack%hotmail.com at msn.mydomain" 
> >type="subscribe"><status>Normal Subscription 
> >Request</status></presence>
> >
> >Is the string i'm sending to jabber right or am i
> missing 
> >something out. I tried using the Winjab client and
> was able to 
> >add an msn contact without any problem. They seem
> to be sending 
> >the same sting. It work for winjab but not for me.
> Can someone 
> >help me with this please. I sure there r lots of
> people out there 
> >who have written their own client. So, please help
> me somebody.
> >
> >Thanks a lot.
> 
> 
> Hi,
> 
> Even I hv the same situation as u hv. But did u try
> out with the 
> ICQ transport? I am facing a problem with the ICQ
> transport. When 
> I try adding it, it say, ICQ offline (Unknown
> error). If u can try 
> out with ICQ.. plz let me know.
> 
> - Parankush
>
_________________________________________________________
> Click below to visit monsterindia.com and review
> jobs in India or 
> Abroad
> http://monsterindia.rediff.com/jobs
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com



More information about the JDev mailing list