<HTML><BODY><div><div> </div><div>Hi Bogdan,</div><div> </div><div>thank you for the advice!</div><div> </div><div>Moreover, I had a mistake: I need to use && rarther than ||</div><div> </div><div>I fixed it, and now only valid INVITEs are allowed</div><div>(either from VoIP ISPs from address table, or from registered users):</div><div> </div><div> # antiflood<br> if(!is_myself("$si") && $Rp == 5060) {<br> if(!is_registered("location", "$fu") && !check_source_address("1")) {<br> exit;<br> }<br> }</div><div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>-----------------------------------------------<br><span style="font-size: 15px;">BR, Alexey</span><br style="font-size: 15px;"><span style="font-size: 15px;">http://alexeyka.zantsev.com/</span></div></div></div></div></BODY></HTML>