[OpenSIPS-Users] Registration permissions per username
    Alexey Kazantsev 
    kurgan-rus at inbox.ru
       
    Tue Jul  2 02:46:37 EDT 2019
    
    
  
The night brings counsel.
For "Deny all except ... " policy - 
register.deny file contents:
ALL : ALL
register.allow file contents:
"^sip:user at 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/
    
    
More information about the Users
mailing list