As I mentioned earlier to Ankur in a separate email, I believe the real problem here isn't technically how to connect to the presence service, but rather that the presence service offers no human-usable ID which is guaranteed to be unique within a school.
wad On Jul 22, 2008, at 6:08 AM, Guillaume Desmottes wrote: > Le jeudi 17 juillet 2008 à 15:44 -0400, Ankur Verma a écrit : >> Hello, > > Hi Ankur, > >> I am able to receive SMS text messages through a mobile phone >> intended >> to be attached to school server. I need to forward this message to a >> specific XO connected on the jabber server. At this moment, I have >> the >> message in the format XO_name:SMS_Message. My plan is: >> >> 1. Get information (Unfriendly Jabber ID? or Nick?) about all the XOs >> connected. > > As I said last time we discussed this on IRC, that depends what is > your > application exactly: > > A) If that's an external application, then you have to connect to the > jabber server as any client/XO. You'll be able to see all the > connected > XO's that are in your jabber roster. Currently we are using an ugly > hack > called "shared roster" meaning you'll see all the connected XO's > but we > plan to drop it soon. > A solution could be to use Gadget [1] but we currently don't have > API to > search for buddies based on their alias (that's probably something > useful to have so we could consider to add one). > Another solution would be for each buddies to subscribe to your > application (as a Friend) if they are interested about receiving SMS > messages but that's not very convenient IMHO. > > B) A server plugin. You'll be able to use the server API (and so be > able > to know which buddies are connected, etc) but you'll be depend on a > server implementation and your app will have to run on the same box as > the server. > > C) A XMPP component. That's generally how XMPP gateways work. People > will have to explicitly subscribe to your component. > > If you choose A. then I strongly suggest you to use Telepathy (Gabble) > as we already have a nice API you could use instead of dealing with > XMPP > directly. > > > Hope that help. > > G. > > > > > [1] http://wiki.laptop.org/go/Gadget > > > > _______________________________________________ > Devel mailing list > Devel@lists.laptop.org > http://lists.laptop.org/listinfo/devel > _______________________________________________ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel