<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Arsen,<br>
<br>
In order to access presence information (of another user), the
watcher/receiver needs to subscribe first. So what you need to do,
is to deny subscription across different SIP domains. You can
easily do this in script checking the RURI domain against FROM URI
domain, for SUBSCRIBE requests.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
<a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
<div class="moz-cite-prefix">On 07/27/2019 03:57 PM, Arsen wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CABoraY5oCH7yvF04C_2qdOLmfz3Knng+XnyV3iKKuz3gaYA-Dw@mail.gmail.com">
<div dir="ltr">
<div>Hi guys,</div>
<div><br>
</div>
I have a scenario where SIP users are grouped logically within a
single domain. <br>
<br>
<div>I am looking for a way how to share presence status only
within those particular logical groups of users. So that users
from group Customer_A can see presence status only from this
group and can't see status of users from Customer_B group.<br>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><br>
</div>
<div>As I know in basic presence config anybody can
see status of anybody and enabling presence rules
requires XCAP integation, but I am confused how to
restrict presence by groups. <br>
</div>
<div><br>
</div>
<div>maybe someone have ideas and can point me in
right direction, please advise :)<br>
</div>
<div><br>
</div>
<div>Best regards,</div>
<div><span style="font-size:12.8px">Arsen Semionov</span></div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>