powered by Jive Software

Smacker: How to send SMS via ICQ

Hi I just start to use Smacker today and trying to send an SMS via ICQ transport.

The method:

connection.createChat("jcdsee@myjabber.net").sendMessage(“Howdy!”);

is to create a chat session, how to send message to ICQ user or a SMS to any mobile phone ?

Thanks

First, it’‘s “Smack” and not “Smacker”. Second, Smack is only an API for XMPP (Jabber) and not for ICQ or SMS. However, if your Jabber server has gateways to those systems, it’'s possible you could send a Jabber message and have it translated to an ICQ or SMS message at the server.

Regards,

Matt

Thanks Matt,

I just want to embed this feature into our application, it’'s like a simple client to send the SMS when an event is raised. We are not going to have any server to deliver the messages.

I am using Vista as the messenger and it can send SMS as long as I have ICQ transport. Let’'s back to my question, how can I add ICQ transport by Smack ?

Tri Tran,

Smack isn’‘t designed to support ICQ and won’‘t in the future. I’'d recommend trying to find a Java ICQ library. Then, you could use that API to integrate with Smack if you need to.

Regards,

Matt

Then how about other transport like Yahoo, MSN … ? I thought it’'s the whole idea for using Jabber.

All transports are generally handled at the server level and not in client libraries. Some people find the idea of transports very important, although I really don’'t. It really depends on what you want to use Jabber for.

Regards,

Matt

A client chat application that is built using Smack may connect to a XMPP server that offers the ICQ transport. So this client can subscribe to the ICQ transport service and make use of all features available in that service (e.g. sending SMS via ICQ).

E.g. using a JAJC (Just Another Jabber Client) client may connect to the “amessage.de” XMPP server to send SMS via ICQ transport.

Therefore, your Smack client will have to provide the GUI for end users to subscribe to the other transport services offerred by the XMPP server (namely, passing the login information for ICQ, Yahoo!, MSN, AOL, etc. to that server).

Right. In the case of transports, you’'re running into the problem of no thread IDs to track chat sessions. See the discussion here:

-iain