<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Inaki,<div><br></div><div>This use case does not concern&nbsp;another regular SIP subscribe but the&nbsp;administrator&nbsp;of the system. I would say that the best way to achieve this with OpenSIPS would to select from the watcher database rather than composing Subscribe from an administrator tool.<div><br></div><div>Adrian</div><div><br><div><br><div><div>On Jun 15, 2009, at 1:22 AM, Iñaki Baz Castillo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>El Lunes, 15 de Junio de 2009, Iñaki Baz Castillo escribió:<br><blockquote type="cite">Hi, RFC 3857 states in section 3.1:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> &nbsp;The policy of the server is such that it allows B to subscribe to its<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;own watcher information.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Would OpenSIPS presence module disallow (by itself) if user A tries to<br></blockquote><blockquote type="cite">subscribe to watcher information of user B?<br></blockquote><blockquote type="cite">Or must this authorization be checked in the script?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks.<br></blockquote><br><br>Opss, Section 3.1 shows an example in which an application server subscribes <br>to the watcher information of an user:<br><br> 3.2. &nbsp;Blacklist Alerts<br><br> &nbsp;&nbsp;Applications can subscribe to watcher information in order to provide<br> &nbsp;&nbsp;value-added features. &nbsp;An example application is "blacklist alerts".<br> &nbsp;&nbsp;In this scenario, an application server maintains a list of known<br> &nbsp;&nbsp;"bad guys". &nbsp;A user, Joe, signs up for service with the application<br> &nbsp;&nbsp;provider, presumably by going to a web page and entering in his<br> &nbsp;&nbsp;presence URI. &nbsp;The application server subscribes to the watcher<br> &nbsp;&nbsp;information for Joe's presence. &nbsp;When someone attempts to SUBSCRIBE<br> &nbsp;&nbsp;to Joe's user presence, the application learns of this subscription<br> &nbsp;&nbsp;as a result of its watcher info subscription. &nbsp;It checks the<br> &nbsp;&nbsp;watcher's URI against the database of known bad guys. &nbsp;If there is a<br> &nbsp;&nbsp;match, it sends email to Joe letting him know about this.<br><br> &nbsp;&nbsp;For this application to work, Joe needs to make sure that the<br> &nbsp;&nbsp;application is allowed to subscribe to his presence.winfo.<br><br>-- <br>Iñaki Baz Castillo &lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>><br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div></blockquote></div><br></div></div></div></body></html>