I recently integrated Vysper into an internal collaboration tool and have been 
very happy with how well it works and how reliable it is.

One thing I tried to do was to inject presence events. The specific use case is 
that I want staff members to be able to set "away" status with a message via 
SMS when unexpectedly away.

It is not at all clear what the right thing to do is. First I tried to just 
send in a presence stanza with no "to" attribute, thinking it would be 
broadcast. That didn't seem to work. So I settled on updating the PresenceCache 
and sending a directed presence stanza to each of the buddies that is currently 
connected. This doesn't seem to work either and feels like the wrong approach. 
You can see my current code at 
https://github.com/StackFrame/sarariman/blob/master/src/java/com/stackframe/sarariman/xmpp/vysper/VysperXMPPServer.java
 in the setPresence() method.

Any guidance on the correct approach would be appreciated.

-- 
Gene McCulley
StackFrame, LLC
[email protected]
http://www.stackframe.com/
phone: 407-733-0885
fax: 321-256-2962
LinkedIn: http://www.linkedin.com/in/mcculley
Twitter: https://twitter.com/mcculley
Skype: genemcculley
114 W. 1st Street, Suite 246, Sanford, FL 32771



Reply via email to