Razvan, <div><br></div><div>thanks, i was actually able to make it work, it was all a matter of putting the right flags on the engage_rtp_proxy, since the ftp proxy command was fine. </div><div><br></div><div>engage_rtp_proxy(&quot;rcie&quot;);</div>

<div><br></div><div>Now i have a different problem. Iooking around i came across a long email exchange you had with someone else regarding the set_rtp_proxy_set() function. </div><div>For some reason its able to create on side of the socket, but when creating the other side to bridge it too, it comes back saying that a set could not be found. </div>

<div><br></div><div><div>This is the config for those sets. </div><div><div>modparam(&quot;rtpproxy&quot;, &quot;rtpproxy_sock&quot;, &quot;1==udp:localhost:7001&quot;)</div><div>modparam(&quot;rtpproxy&quot;, &quot;rtpproxy_sock&quot;, &quot;2==udp:localhost:7002&quot;)</div>

<div>modparam(&quot;rtpproxy&quot;, &quot;rtpproxy_sock&quot;, &quot;3==udp:localhost:7003&quot;)</div><div>modparam(&quot;rtpproxy&quot;, &quot;rtpproxy_sock&quot;, &quot;4==udp:localhost:7004&quot;)</div></div></div><div>

<br></div><div>Whats interesting is that on load opensips complaints that </div><div>/sbin/opensips[28262]: ERROR:rtpproxy:select_rtpp_set:  script error-invalid id_set to be selected </div><div><br></div><div>However it does connect to each socket and enables it. </div>

<div>INFO:rtpproxy:rtpp_test: rtp proxy &lt;udp:localhost:7001&gt; found, support for it enabled</div><div>INFO:rtpproxy:rtpp_test: rtp proxy &lt;udp:localhost:7002&gt; found, support for it enabled</div><div>INFO:rtpproxy:rtpp_test: rtp proxy &lt;udp:localhost:7003&gt; found, support for it enabled</div>

<div>INFO:rtpproxy:rtpp_test: rtp proxy &lt;udp:localhost:7004&gt; found, support for it enabled</div><div><br></div><div>The open sips script is a simple .</div><div><div>set_rtp_proxy_set(&quot;1&quot;);</div><div>engage_rtp_proxy(&quot;rcie&quot;);</div>

<div><br></div><div>But when placing a call i get </div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div></div><div><div>Jul 26 08:32:49 gw1 /sbin/opensips[28287]: -&gt; Route(0) - New Incomming Invite request  to [sip:xxxxx@PUBLICIP] </div>

<div>Jul 26 08:32:49 gw1 /sbin/opensips[28287]: -&gt; Route(0) - Group selected 1 </div><div><span class="Apple-style-span">Jul 26 08:32:49 gw1 /sbin/opensips[28287]: -&gt; Route(0) - </span>xxxxx<span class="Apple-style-span"> going to call to sip:<a href="http://192.168.3.8:5060">192.168.3.8:5060</a> </span></div>

<div>Jul 26 08:32:49 gw1 /sbin/opensips[28287]: -&gt; Route(0) - RT Proxy Set 1</div><div><span class="Apple-style-span">Jul 26 08:32:49 gw1 rtpproxy[26135]: INFO:handle_command: new session </span>xxxxx<span class="Apple-style-span">@<a href="http://domain.ip-com.com">domain.ip-com.com</a>, tag </span>xxxxx<span class="Apple-style-span">;1 requested, type strong</span></div>

<div>Jul 26 08:32:49 gw1 rtpproxy[26135]: INFO:handle_command: new session on a port 14690 created, tag 3552298369-227332;1</div><div><span class="Apple-style-span">Jul 26 08:32:49 gw1 rtpproxy[26135]: INFO:handle_command: pre-filling caller&#39;s address with </span>xxxxx<span class="Apple-style-span">:52810</span></div>

<div>Jul 26 08:32:49 gw1 /sbin/opensips[28287]: -&gt; Route(1) - Forwarding Call to [<a href="http://sip:xxxxxxx@192.168.3.8:5060">sip:xxxxxxx@192.168.3.8:5060</a>] </div><div><b>Jul 26 08:32:56 gw1 /sbin/opensips[28338]: ERROR:rtpproxy:select_rtpp_node: script error -no valid set selected </b></div>

<div><b>Jul 26 08:32:56 gw1 /sbin/opensips[28338]: ERROR:rtpproxy:force_rtp_proxy: no available proxies </b></div><div>Jul 26 08:32:59 gw1 /sbin/opensips[28336]: ERROR:rtpproxy:select_rtpp_node: script error -no valid set selected </div>

<div>Jul 26 08:32:59 gw1 /sbin/opensips[28336]: ERROR:rtpproxy:force_rtp_proxy: no available proxies </div><div>Jul 26 08:33:08 gw1 /sbin/opensips[28287]: ERROR:rtpproxy:select_rtpp_node: script error -no valid set selected </div>

<div>Jul 26 08:33:08 gw1 /sbin/opensips[28287]: ERROR:rtpproxy:unforce_rtp_proxy_f: no available proxies </div><div>Jul 26 08:33:08 gw1 /sbin/opensips[28287]: ERROR:rtpproxy:engage_close_callback: cannot unforce rtp proxy </div>

<div><br></div></div><div><br></div><div>Has anyone found a solution to this?  (same thing happens with using rtpproxy_offer)</div><div><br></div><div>Thanks</div><div><br><br><div class="gmail_quote">On Thu, Jul 26, 2012 at 3:42 AM, Răzvan Crainea <span dir="ltr">&lt;<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div><tt>Hi, Sebastian!<br>
        <br>
        The problem is that engage_rtp_proxy function does not support
        media bridging functionality. In order to implement the scenario
        described successfully, you will have to configure rtpproxy
        manually, using rtpproxy_offer/rtpproxy_answer.<br>
        <br>
        Best regards,<br>
      </tt>
      <pre cols="72">Razvan Crainea
OpenSIPS Core Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a>
</pre><div><div class="h5">
      On 07/25/2012 08:26 PM, Sebastian Sastre wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">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>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>