On Fri, Apr 19, 2019 at 11:38:50AM +0300, Yu Boot wrote:
Added this before final "return", it still allow to call from any IP without registration. :(
if(!allow_source_address() || $au==$null) { sl_send_reply("403","Go away!"); }
This code is in no way related to registrations. If you want to check against the location database, you'll have to do this manually AFAIK. If you store locations in a database you can select where received like 'sip:$si:%' with e.g. sql_ops