[OpenSIPS-Devel] SF.net SVN: opensips:[5695] trunk/modules/presence
Anca Vamanu
anca at opensips.org
Mon May 11 13:37:01 CEST 2009
Revision: 5695
http://opensips.svn.sourceforge.net/opensips/?rev=5695&view=rev
Author: anca_vamanu
Date: 2009-05-11 11:37:01 +0000 (Mon, 11 May 2009)
Log Message:
-----------
- Improved privacy rules support configuration possbility - it is now possible to force a subscription to be considered allowed from the script.
- "handle_subscribe" function can now take one parameter meaningful when using a configuration with privacy rules enabled (force_active parameter in presence_xml module not set). Supposing that you have a means to tell that the contact the Subscribe message is destined to( the presentity) can not upload an xcap document with it's privacy rules, you can tell the presence server to consider that subscription allowed(with Subscription-Status:active) by calling the handle_subscribe function with the string parameter "1".
Ex:
if(uri =~ "kphone at opensips.org")
handle_subscribe("1");
This parameter allows building a presence platform with xcap privacy rules were normal phones not supporting xcap still can send their presence information.
Modified Paths:
--------------
trunk/modules/presence/README
trunk/modules/presence/doc/presence_admin.xml
trunk/modules/presence/presence.c
trunk/modules/presence/subscribe.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Devel
mailing list