<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 another regular SIP subscribe but the administrator 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"> The policy of the server is such that it allows B to subscribe to its<br></blockquote><blockquote type="cite"> 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. Blacklist Alerts<br><br> Applications can subscribe to watcher information in order to provide<br> value-added features. An example application is "blacklist alerts".<br> In this scenario, an application server maintains a list of known<br> "bad guys". A user, Joe, signs up for service with the application<br> provider, presumably by going to a web page and entering in his<br> presence URI. The application server subscribes to the watcher<br> information for Joe's presence. When someone attempts to SUBSCRIBE<br> to Joe's user presence, the application learns of this subscription<br> as a result of its watcher info subscription. It checks the<br> watcher's URI against the database of known bad guys. If there is a<br> match, it sends email to Joe letting him know about this.<br><br> For this application to work, Joe needs to make sure that the<br> application is allowed to subscribe to his presence.winfo.<br><br>-- <br>Iñaki Baz Castillo <<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>