I mean auth, not registration. Anyway this works as I've wanted:
if(!allow_source_address() && $au==$null)
{
sl_send_reply("403","Go away!");
exit;
}
19.04.2019 12:19, Daniel Tryba пишет:
This code is in no way related to registrations.
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
Added this before final "return", it still allow to call from any IP
without registration. :(
19.04.2019 11:22, Daniel Tryba пишет:
if(!allow_source_address() || $au==$null)
{
sl_send_reply("403","Go away!");
}
___
Kamailio (SER) - Users
On Fri, Apr 19, 2019 at 09:44:14AM +0300, Yu Boot wrote:
> Following code snippet from default kamailio.cfg never gives 403 if you
> smart enough to set "fromdomain" parameter on Asterisk to Kamailio's IP. How
> to fix it? I want password-based registration (which is OK now) and permit
> calls via
Following code snippet from default kamailio.cfg never gives 403 if you
smart enough to set "fromdomain" parameter on Asterisk to Kamailio's IP.
How to fix it? I want password-based registration (which is OK now) and
permit calls via Kamailio only from permitted IPs.
# if caller is