<div dir="ltr">Hi,<div><br></div><div>I want to use Kamailio as SIP loadbalancer and NAT helper in front of freeswitch boxes. Main tasks here are:</div><div>1. load balancing SIP requests to freeswitch boxes</div><div>2. fixing contact information during registrations and invites for nat'ed clients (kamailio is not registrar)</div><div>3. fixing sdp (or proxying rtp via rtpproxy) for nat'ed clients</div><div>4. security (check SIP messages, pike, etc)</div><div>5. outbound proxy for freeswitch boxes</div><div><br clear="all"><div>The main question here is about nat pinning. Acctording to module doc (<a href="http://kamailio.org/docs/modules/4.4.x/modules/nathelper.html">http://kamailio.org/docs/modules/4.4.x/modules/nathelper.html</a>) I need nathelper module and usrloc module.</div><div><br></div><div>So I can proxy REGISTER requests to freeswitch boxes and in onreply_route check for REGISTER statuses:</div><div>1. if no success we use pike to limit bruteforce attacks</div><div>2. if success I need to save contact to usrloc db table</div><div><br></div><div>But there is one issue. Multiple registration are allowed on freeswitch boxes and in replies (freeswitch -> kamailio) I see more than one Contact header.</div><div><br></div><div>Is it an issue or kamailio will handle it without problems?</div><div>Or I need to save Contact header from request to hash table and retreive it in onreply_route? But I do not know how to save it in usrloc db table then. I thin this is more sophisticated approach.</div><div><br></div><div>I appreciate your advice.</div><div><br></div><div>Thank you in advance.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">С уважением,<br>Владислав Захожай<br><br></div></div>
</div></div>