[OpenSIPS-Users] opnsisps 2.3 routing config

lorenzo tombini lorenzo.tombini at gmail.com
Tue Jun 6 05:58:43 EDT 2017


Hi Michele,
You got it right.
I'll take a look about group module.

Thanks a lot



2017-06-06 11:00 GMT+02:00 Michele Pinassi <michele.pinassi at unisi.it>:

> Hi Lorenzo,
>
> 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 (
> http://www.opensips.org/html/docs/modules/devel/group.html) and From URI
> to detect to which group caller is belonging to:
>
> if (db_get_user_group("Request-URI", "$avp(10)")) {
>     xdbg("User $ru belongs to $(avp(10)[*]) group(s)\n");
>
> and doing the same with To URI, you can allow call routing only for users
> in the same group.
>
> Good luck.
>
> Michele
>
>
> On 01/06/2017 15:34, lorenzo tombini wrote:
>
> Hi all,
> I worked with asterisk for years but i'm really new in opensips.
> I've installed v. 2.3 on centos7 64bit with yum.
> Using mysql backend, i've configured 3 subscriber that can call and
> transfer calls each others.
> 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...
>
> Could you please show me the correct way to realize it please?
>
> thanks a lot in advabced
>
> kind regards
>
> --
> Lorenzo Tombini
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> --
> Michele Pinassi
> Responsabile Telefonia di Ateneo
> Servizio Reti, Sistemi e Sicurezza Informatica - Università degli Studi di Siena
> tel: 0577.(23)5000 - centralino at unisi.it
>
> Per trovare una soluzione rapida ai tuoi problemi tecnici consulta le FAQ di Ateneo, http://www.faq.unisi.it
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Lorenzo Tombini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170606/62941245/attachment.html>


More information about the Users mailing list