On Tue, Jan 03, 2017 at 12:58:20PM +0200, Vladyslav Zakhozhai wrote:
The main question here is about nat pinning.
Acctording to module doc (
http://kamailio.org/docs/modules/4.4.x/modules/nathelper.html) I need
nathelper module and usrloc module.
So I can proxy REGISTER requests to freeswitch boxes and in onreply_route
check for REGISTER statuses:
1. if no success we use pike to limit bruteforce attacks
2. if success I need to save contact to usrloc db table
I don't know the answer to your question, but why do you need to save
the contact in usrloc? If it is not to store a fixed freeswitch backend
for a client (for INVITEs to that client), don't do it.
Just block (successive) failures to authenticate.