[OpenSIPS-Users] Registrar with IP authentication - selecting variables from DB

Stefano Pisani stefano.pisani at omnianet.it
Fri Jan 13 06:20:29 EST 2017


Use 0.0.0.0/0 for those without IP filter.

s

Il 13/01/2017 12:09, maatohewetbi ha scritto:
> I think You don't understand. My Opensips should work in this scenario:
>
> 1. When user wants to register, I have to check whether his sip login is in
> address table (which can be stored in context_info for example). If it is
> there then check IP, which is in this record, for this sip login. If this IP
> is the same as real IP of this user (from $si value), the user can be
> registered. If this IP is not the same - user can't be registered.
> 2. When user wants to register, but his sip login doesn't exist in address
> table - this user can be registered without IP checking.
>
> So I have to check IP, only for users, whom login is in address table.
> Others, can registered without checking. If I use one of function in
> permission module I always have to check IP. I have to check login first,
> then IP. I hope that now everything is clear.
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Registrar-with-IP-authentication-selecting-variables-from-DB-tp7605514p7605552.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users





More information about the Users mailing list