The night brings counsel.
For "Deny all except ... " policy -
register.deny file contents:
ALL : ALL
register.allow file contents:
"^sip:user@alexeyka\.zantsev\.com$" : ALL
And the script:
if (is_method("REGISTER"))
{
if(!allow_register("register")) {
sl_send_reply(403, "Forbidden by permissions");
exit;
}
...
-----------------------------------------------
BR, Alexey
http://alexeyka.zantsev.com/
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users