Dnia 2009-02-10, wto o godzinie 11:27 +0100, Loic Didelot pisze: > I am looking for an add-on to jabberd2 to define a presence for non-xmpp > clients like phones or mobile devices. > > I would like to use some sort of API (web api would be great) to tell > jabberd2 that USER1 is online or offline etc... without creating a > persistent TCP,XMPP connection. > > Can we chat about this project?
I already did put some thought in extending jabberd2 component protocol to support this kind of information. Please look at http://jabberd2.xiaoka.com/wiki/ComponentProtocol You would need to create a component then, to subscribe to presence events and update DB/Web service etc. You may use the mod_status too to update status table in DB and make this information available via web service. I do this on http://www.chrome.pl/ with user status information: http://www.chrome.pl/status/[email protected]/picture If you would like to not only GET but also SET the user presence, you would need a BOSH service. I did some preliminary work in extending C2S component to support BOSH directly, but this is nowhere near completion. Or, you may emulate the C2S component and talk with SM directly sending it <sm:session/> packets - see http://svn.xiaoka.com/jabberd2/trunk/docs/dev/sm-c2s-protocol In fact, this is the way I would implement it. IMO using the SM/C2S protocol + implementing presence extensions is a way to go for other presence systems integration. BTW: I am CC'ing this answer to jabberd2 mailing list for archival purposes. -- -- To unsubscribe send a mail to [email protected]
