<div dir="ltr">Hi Michele,<div>You got it right.<br></div><div>I'll take a look about group module.</div><div><br></div><div>Thanks a lot</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-06 11:00 GMT+02:00 Michele Pinassi <span dir="ltr"><<a href="mailto:michele.pinassi@unisi.it" target="_blank">michele.pinassi@unisi.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hi Lorenzo,</p>
<p>if i figure out correcty, you want a context separation based on
network, right ? You can do it in some ways: for example, you can
use group module
(<a class="m_6996612160963539435moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/devel/group.html" target="_blank">http://www.opensips.org/html/<wbr>docs/modules/devel/group.html</a>) and
From URI to detect to which group caller is belonging to:<br>
</p>
<pre class="m_6996612160963539435programlisting" style="font-family:monospace;white-space:pre-wrap;background-color:rgb(254,254,238);border:1px solid rgb(153,204,204);color:rgb(0,0,0);padding-left:15pt;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">if (db_get_user_group("Request-<wbr>URI", "$avp(10)")) {
xdbg("User $ru belongs to $(avp(10)[*]) group(s)\n");
</pre>
and doing the same with To URI, you can allow call routing only for
users in the same group.<br>
<br>
Good luck.<br>
<br>
Michele<div><div class="h5"><br>
<br>
<div class="m_6996612160963539435moz-cite-prefix">On 01/06/2017 15:34, lorenzo tombini
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi all,
<div>I worked with asterisk for years but i'm really new in
opensips.</div>
<div>I've installed v. 2.3 on centos7 64bit with yum.</div>
<div>Using mysql backend, i've configured 3 subscriber that can
call and transfer calls each others.</div>
<div>I'd like to configure it that users calling from NET1 just
can call the users in the same net, users in NET2 can call
just users in NET2 and so on...</div>
<div> <br clear="all">
<div>Could you please show me the correct way to realize it
please?</div>
<div><br>
</div>
<div>thanks a lot in advabced</div>
<div><br>
</div>
<div>kind regards</div>
<div><br>
</div>
-- <br>
<div class="m_6996612160963539435gmail_signature" data-smartmail="gmail_signature">Lorenzo
Tombini</div>
</div>
</div>
<br>
<fieldset class="m_6996612160963539435mimeAttachmentHeader"></fieldset>
<br>
</div></div><span class=""><pre>______________________________<wbr>_________________
Users mailing list
<a class="m_6996612160963539435moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_6996612160963539435moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre class="m_6996612160963539435moz-signature" cols="72">--
Michele Pinassi
Responsabile Telefonia di Ateneo
Servizio Reti, Sistemi e Sicurezza Informatica - Università degli Studi di Siena
tel: 0577.(23)5000 - <a class="m_6996612160963539435moz-txt-link-abbreviated" href="mailto:centralino@unisi.it" target="_blank">centralino@unisi.it</a>
Per trovare una soluzione rapida ai tuoi problemi tecnici consulta le FAQ di Ateneo, <a class="m_6996612160963539435moz-txt-link-freetext" href="http://www.faq.unisi.it" target="_blank">http://www.faq.unisi.it</a> </pre>
</font></span></div>
<br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Lorenzo Tombini</div>
</div>