[OpenSIPS-Users] is_registered function

Alexey Kazantsev kurgan-rus at inbox.ru
Tue Oct 27 06:14:24 EST 2020

Hi Bogdan,
thank you for the advice!
Moreover, I had a mistake: I need to use && rarther than ||
I fixed it, and now only valid INVITEs are allowed
(either from VoIP ISPs from address table, or from registered users):
        # antiflood
        if(!is_myself("$si") && $Rp == 5060) {
            if(!is_registered("location", "$fu") && !check_source_address("1")) {
BR, Alexey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201027/e527ed2e/attachment-0001.html>

More information about the Users mailing list