[JDEV] Using ICQ Transport From a Program Question

Schuyler Heath heath at bigsky.net
Tue May 23 20:54:04 CDT 2000


icq-transport should send you something like this after your register:
<presence type='subscribe'
from='icq.jabber.com/registered?name=123456&pass=xxxx'/>

This is so the transports knows when you are online/available. Make sure
you send back a 'subscribed' presence like this:
<presence type='subscribed'
to='icq.jabber.com/registered?name=123456&pass=xxxx'/>

Schuyler Heath

> Mike Petras wrote:
> 
> I am trying to write a program that connects to the jabber.com server
> to send messages to Jabber, ICQ and AOL users. I created an account
> (mikewp) using the JabberIM client and added my ICQ account using
> JabberIM. It works great - I can send and receive messages to and from
> Jabber and ICQ clients (haven't tried AIM yet). In my program I
> connect to jabber.com on 5222 and open the XML stream as described in
> the Client / Server documentation. Then I send the iq message to log
> in to that same mikewp account. All of this works great - I get the
> XML responses described in the documentation. But when I try to send a
> message to icq#@icq.jabber.com I get an error message saying I'm not
> authorized to use the ICQ transport. I suspect I'm missing a step
> involving logging in to use the ICQ transport that the JabberIM client
> performs because it knows about my ICQ account.
> 
> Any suggestions of things to try? Any pointers to documenation?
> 
> Any help is much appreciated.
>                                                              Thanks,
>                                                                 Mike




More information about the JDev mailing list