The same. After doing the www_authorize for the REGISTER, before doing save(), do the check on the loaded IP. If failed, send back a 403 Forbidden.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 29.07.2014 07:48, Лытаев Антон Викторович wrote:
# reject call
But I need to cancel the registration (in this case), and not only reject calls

28.07.2014 16:04, Bogdan-Andrei Iancu пишет:
After loading the field into an avp, after successful auth you can simply do:
    if ($si!=$avp(loaded_IP)) {
        #reject call
    }




_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to