powered by Jive Software

Sending ICQ messages via ICQ gateway?

Since months, I am trying to get sending messages via an ICQ gateway to work. Even with the latest Smack 1.3.0 release the bug occors:

When I am sending a message to icqn@icq.amessage.info via Smack I am getting the error reply from the gateway: “Sending message failed, user is not connected”. This is not true, my ICQ user is definately online.

When I am logged into the same Jabber account in parallel from Exodus, the execution of my program indeed sends a message to my ICQ account.

Of course, I have registered my Jabber account for the specific gateway.

Here is my code fragment:

XMPPConnection.DEBUG_ENABLED = true;

XMPPConnection connection =

new SSLXMPPConnection(“jabberserver”);

connection.login(“jabberuser”, “password”);

Chat chat =

connection.createChat("icqn@icq.amessage.info");

Message message = chat.createMessage();

message.setSubject(“test”);

message.setBody(“test”);

chat.sendMessage(message);

connection.close();

I also tried with 500ms delays between each statement.

Can anyone point me to a solution, please?

Regards,

Andreas

Goonie,

I have no experience with the gateway feature of XMPP servers so can’‘t be of much help. I’'d recommend turning on the debugger and checking to see what the difference between the message packets is.

Regards,

Matt