Hello, <br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>Im trying to configure RTP proxy for the following scenario. </div>


<div><br></div><div>I have opensips in the border server between my public ipaddress and my internal. So that ETH0 has public IP and eth1 has private. </div>
<div><br></div><div>I set mhomed=1 so that packets are forwarded correctly and the call does connect. </div><div><br></div><div>First of all, is this possible with rtpproxy and opensips? I know Mediaproxy is not able to bind like that. </div>



<div><br></div><div>The RTP proxy command I&#39;m using is </div><div><br></div><div>rtpproxy -f -l PUBLIC-IP/<a href="http://192.168.3.18" target="_blank">192.168.3.18</a> -s udp:<a href="http://127.0.0.1:12221" target="_blank">127.0.0.1:12221</a> -F</div>



<div><br></div><div>Opensips Config looks like this. </div><div><br></div><div><div><div>                if (is_method(&quot;INVITE&quot;)){</div><div>                        ##xlog(&quot;-&gt; Route(0) - New Incomming Invite request  to [$ru]\n&quot;);</div>



<div>                        if (check_source_address(&quot;1&quot;)) {</div><div>                                record_route();</div><div>                                create_dialog();</div><div><br></div><div>                                if (load_balance(&quot;1&quot;,&quot;channels&quot;)){</div>



<div><br></div><div>                                        # dst URI points to the new destination</div><div>                                        #ahora le sacamos el prefijo</div><div>                                        dp_translate(&quot;1&quot;,&quot;$ruri.user/$ruri.user&quot;);</div>



<div><br></div><div>                                        #xlog(&quot;-&gt; Route(0) - $ruri.user going to call to $du\n&quot;);</div><div>                                        $ru = &quot;sip:&quot; + $rU + &quot;@&quot; + $dd + &quot;:&quot; + $dp;</div>



<div>                                        $avp(dst) = $dd;</div><div><br></div><div>                                        engage_rtp_proxy(&quot;ie&quot;);</div><div>                                        route(1);</div>



<div>                                }</div><div>                                else{</div><div>                                     <span style="white-space:pre-wrap">        </span>xlog(&quot;-&gt; Route(0) - Did not find available GWs\n&quot;);</div>



<div>                                        sl_send_reply(&quot;500&quot;, &quot;All is full&quot;);</div><div>                                }</div><div>                        }</div><div>                        else{</div>



<div>                             <span style="white-space:pre-wrap">        </span>xlog(&quot;-&gt; IP not in address table \n&quot;);</div><div>                                sl_send_reply(&quot;503&quot;,&quot;IP not in address table&quot;);</div>



<div>                        }</div><div>                }</div></div></div><div><br></div><div>When is tart open sips, it connects to RTP Proxy with no problems. </div><div><br></div><div>When the invite is sent out to the internal ip it correctly sets c= on the body but i don&#39;t see rtpproxy doing anything nor i get audio in any direction. </div>



<div><br></div><div>rtpproxy leaves no logs, or errors or anything. </div><div><br></div><div>am i doing something wrong here? </div><div><br></div><div>thanks </div><div><br></div><div><br></div><div><br></div>
</blockquote></div><br>