<div dir="ltr"><br clear="all">Hello,<br>i'm on my first try with kamailio. I need to build a SIP balancer that should keep SIP<br>registration from VoIP provider and route the calls to the asterisk boxes where an IVR<br>will take care to answer.<br><br>Here's my network topology: <br><br><span style="font-family:monospace,monospace">                                      +---> [asterisk1]<br>[public_ip]                           |    10.50.10.131<br> [router]  <---NAT---> [kamailio] <---+ <br>10.50.10.1            10.50.10.120    |    <br>                                      +---> [asterisk2]<br>                                           10.50.10.132</span><br><br>In my setup i planned to use UAC and DISPATCHER modules. I started from the <br>"kamailio-basic.cfg" and added some extra lines to handle UAC and DISPATCHER.<br><br>All is working fine when i do a test call from a softphone inside network <a href="http://10.50.10.0/24">10.50.10.0/24</a>.<br><br>When a call is coming from the sip carrier, troubles occurs because asterisk boxes<br>are sending their internal ip in SDP.<br><br>I understand that i need to rewrite SDP in that case, but i actually don't know how/where.<br><br>I've attached kamailio configuration and a sip trace taken with sngrep where the problem<br>is visible.<br><br>For security reasons, i would like to force the RTP through RTPProxy. <br><br>I'm missing something, and need your help me to understand my errors.<br><br>Best Regards,<br>Bruno<br><br><br>
</div>