<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body 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="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/devel/group.html">http://www.opensips.org/html/docs/modules/devel/group.html</a>) and
From URI to detect to which group caller is belonging to:<br>
</p>
<pre class="programlisting" style="font-family: monospace; white-space: pre; 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; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">if (db_get_user_group("Request-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<br>
<br>
<div class="moz-cite-prefix">On 01/06/2017 15:34, lorenzo tombini
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOC6kh2DWhBYfJ1gJUrFi0vsqaNorwcT1WrEP2D6JkxxMrJx2A@mail.gmail.com">
<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="gmail_signature" data-smartmail="gmail_signature">Lorenzo
Tombini</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>
<pre class="moz-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="moz-txt-link-abbreviated" href="mailto:centralino@unisi.it">centralino@unisi.it</a>
Per trovare una soluzione rapida ai tuoi problemi tecnici consulta le FAQ di Ateneo, <a class="moz-txt-link-freetext" href="http://www.faq.unisi.it">http://www.faq.unisi.it</a> </pre>
</body>
</html>