Then simply reverse the IP check logic and do it after the user is authenticated.

Best regards,

Răzvan Crainea
OpenSIPS Solutions

On 01/11/2017 01:15 PM, maatohewetbi wrote:
Yes, but I want to check sip login first, not an IP. Here is ny plan, what I
want to do:

- store IP, login in one table (a new  on or existing one) - there will be
IP and SIP logins.

When a client make a registration, my script should check if this login is
in table, if yes - then check IP, if it matches - allow a registration, if
not - send 403 and exit. There will be another case, when a SIP login is not
in this table - just allow registration without checking an IP.

View this message in context:
Sent from the OpenSIPS - Users mailing list archive at

Users mailing list

Users mailing list

Reply via email to