[OpenSIPS-Users] Presence Module-restricting user from changing presence

Saúl Ibarra Corretgé saul at ag-projects.com
Wed Feb 13 10:07:37 CET 2013


Hi,

On Feb 13, 2013, at 6:09 AM, garima sharma wrote:

> Hi
> 
> I have integrated OpenSIPS presence Module with OpenIMS.
> Now, I am able to see presence on user;s in client Alice and Bob. I want to restrict users ALice and Bob from changing their presence,
> i.e after Alice registers, it should be shown available. After that even if Alice wants to change its status to busy or away, It should not be able to do it.
> Also, once Alice de-registers, it should show offline.
> Is their a way in OpenSIPS to do the same at OpenSIPS server end?? 

Presence is changed using PUBLISH method, so you could just reject them from the proxy, thus preventing the users from changing their state. Now, for manually setting the presence state while a user is registered, you'll have to use some external process as there are no tools to do this in OpenSIPS atm. Maybe sending a PUBLISH with t_uac_dlg can be enough, but you'll need to take care of refreshing it.


Regards,

--
Saúl Ibarra Corretgé
AG Projects






More information about the Users mailing list