powered by Jive Software

Predefined Custom Presence Messages


We are looking to implement Jive in a private network. One of the requirements is to configure all users with some predefined custom status messages. Aside from providing them a custom built client, is there a way to do this on the server so that the users are free to use whatever client they are comfortable with,

Thanks - Anil

Hey Anil,

I’'m a little bit confused with your requirement.

What do you mean by “configure all users with some predefined custom status messages”? Do you want to set a status to the last unavailable presence? Do you want to return a “special message” if someone sends a message to an offline user?

is there a way to do this on the server so that the users are free to use whatever client they are comfortable with

Being JM an XMPP server you can use any XMPP compliant client with the server. Unless you are looking for some special functionality that is not widely used or some particular extension.


– Gato

Hi Gato,

Thanks for the response.

Here is the scenario. This private network that I referred to needs some custom status messages which are codes that are tied to some internal processes. So when the user selects a certain status message, it should kickoff a workflow event in the process.

For eg, lets say the status message is ‘‘LOC101’’ and the associated process is to request the user’'s calls and messages be redirected to a number(s) associated with ‘‘Location 101’’, then when the user selects LOC101 as his status message, we need to detect that and kick off the process that sets up his call forwarding rules.

Now these codes are defined internally, which means every user who uses the system, needs to manually configure his client with these status codes. One way to avoid that is to customize a client with all the required codes and mandate the use of that client. Another way is to write plugins for some ‘‘supported’’ clients which can query the server and get the list of status codes.

I was wondering if there was a way where we can push these custom status codes from the server to the client, it would be the most flexible and easily maintainable approach.

Hope this gives a clearer picture of what I was referring to.

Thanks for reading this long message.

  • Anil.

Hey Anil,

This is a very interesting scenario. I think that you should want to read url=http://www.jabber.org/jeps/jep-0060.htmlPub-Sub[/url] for pushing information into the clients, url=http://www.jabber.org/jeps/jep-0050.htmlAd-Hoc Commands[/url] for executing commands on the server and url=http://www.jabber.org/jeps/jep-0030.htmlService Discovery[/url] for discovering information on the server.

Currently, JM only supports url=http://www.jabber.org/jeps/jep-0030.htmlService Discovery[/url] and we are planninng to add support for the other JEPs. If you are using a client like Smack you can then use url=http://www.jabber.org/jeps/jep-0030.htmlService Discovery[/url] and create your own set of extensions on the client and write a new component on the server to offer the service you just described.

Let us know if you need any help implementing this or have questions.


– Gato

Thanks Gato, I have been looking into the Service Discovery to implement this. I will read up on the other JEPs for future planning.

  • Anil.