<div dir="ltr"><div>Hi,</div><div><br></div><div>I'm trying use two instances of rtpproxy listening to two different public IPs, to handle incoming and outgoing legs.<br><br>That means i want to implement this network topology:<br><br>SipClient--------->media from client to proxy--->rtpproxy1</div><div>Sipclient<----------media from proxy to client<---rtpproxy2</div><div><br></div><div>Where rtpproxy1 listening to IP1</div><div>and rtpproxy2 listening to IP2</div><div><br></div><div>in kamailio cfg :<br><div> modparam("rtpproxy", "rtpproxy_sock", " udp:<a href="http://127.0.0.1:22222">127.0.0.1:22222</a> udp:<a href="http://127.0.0.1:22223">127.0.0.1:22223</a>")</div><div><br></div><div><br></div><div><br></div> </div><div><br></div><div>if (is_request()) {</div><div>                if (!has_totag()) {</div><div>                        add_rr_param(";nat=yes");</div><div>                }</div><div>                rtpproxy_offer("IP1");</div><div>        }</div><div>        if (is_reply()) {</div><div>                if(isbflagset(FLB_NATB)) {</div><div>                        fix_nated_contact();</div><div>                }</div><div>                rtpproxy_answer("IP2");</div><div>        }</div><div><br></div><div><br></div><div>But its not working. </div><div><br></div><div>Thanks in advance</div></div>