<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi<br>
      <br>
      Does your opensips have two network interfaces, and does rtpproxy
      works in bridge mode ?<br>
      <br>
      C&eacute;dric<br>
      <br>
      Le 10/04/2013 17:42, Andrei Grav a &eacute;crit&nbsp;:<br>
    </div>
    <blockquote
cite="mid:CALUe069tLoQzwgXixxMq4742jdKmC7mW1U=0p_nd99FkXgoMZA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi,<br>
          <br>
          I have installed Opensips 1.9 on debian 6 using the default
          config for residential with NAT<br>
          My topology is:<br>
          <br>
          UAC ------ ROUTER+FIREWALL --------[ INTERNET ]---- OPENSIPS
          ----- ASTERISK<br>
          UAC is behind NAT 89.xxx.xxx.xxx<br>
          Opensips and Asterisk has Public IP's<br>
          <br>
          I'm facing the following issue:<br>
          The invite from UAC is announcing his audio port on 4000<br>
          Because is not NAT detected the asterisk is sending the rtp
          media directly to 89.x.x.x:4000 and no using rtp_proxy<br>
          Because the firewall is blocking the RTP port 4000 coming from
          Asterisk's IP there is no audio on the UAC side&nbsp;<br>
          <br>
          IF I comment the line #if (nat_uac_test("23")) all the traffic
          is going to rtp_proxy and audio is working fine.<br>
          Is there any way to solve this ?<br>
          <br>
          route{<br>
          force_rport();<br>
          if (nat_uac_test("23")) {<br>
          if (is_method("REGISTER")) {<br>
          fix_nated_register();<br>
          setbflag(NAT);<br>
          } else {<br>
          fix_nated_contact();<br>
          setflag(NAT);<br>
          }<br>
          }<br>
          .....<br>
          <br>
          <br>
          <br>
          U 89.xxx.xxx.xxx:47054 -&gt; 193.xxx.xxx.xxx:5060<br>
          INVITE <a moz-do-not-send="true"
            href="http://sip:+0080080000@myopensips.com:5060">sip:+0080080000@myopensips.com:5060</a>
          SIP/2.0.<br>
          Via: SIP/2.0/UDP
89.xxx.xxx.xxx:47054;rport;branch=z9hG4bKPjhaz3VKGysNj2NSHtuKad0rIMpg3pUdt9.<br>
          Max-Forwards: 70.<br>
          From: &lt;<a moz-do-not-send="true"
            href="mailto:sip%3A50105@myopensips.com">sip:50105@myopensips.com</a>&gt;;tag=szMaKKCRwqx5OGjUCwNS7F4X1ZDQpr8F.<br>
          To: &lt;<a moz-do-not-send="true"
            href="mailto:sip%3A%2B0080080000@myopensips.com">sip:+0080080000@myopensips.com</a>&gt;.<br>
          Contact: <a class="moz-txt-link-rfc2396E" href="sip:50105@89.xxx.xxx.xxx:47054;ob">&lt;sip:50105@89.xxx.xxx.xxx:47054;ob&gt;</a>.<br>
          Call-ID: sLw5Y3pTNKyBLrk2ZS9brsL87jxN6CPZ.<br>
          CSeq: 3657 INVITE.<br>
          Route: <a class="moz-txt-link-rfc2396E" href="sip:myopensips.com:5060;transport=udp;lr">&lt;sip:myopensips.com:5060;transport=udp;lr&gt;</a>.<br>
          Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE,
          NOTIFY, REFER, MESSAGE, OPTIONS.<br>
          Supported: replaces, 100rel, timer, norefersub.<br>
          Session-Expires: 1800.<br>
          Min-SE: 90.<br>
          User-Agent: CSipSimple_GT-I9100-16/r1916.<br>
          Content-Type: application/sdp.<br>
          Content-Length: 348.<br>
          .<br>
          v=0.<br>
          o=- 3574590691 3574590691 IN IP4 89.xxx.xxx.xxx.<br>
          s=pjmedia.<br>
          c=IN IP4 89.xxx.xxx.xxx.<br>
          t=0 0.<br>
          m=audio 4000 RTP/AVP 99 0 8 101.<br>
          c=IN IP4 89.xxx.xxx.xxx.<br>
          a=rtcp:4001 IN IP4 89.xxx.xxx.xxx.<br>
          a=sendrecv.<br>
          a=rtpmap:99 SILK/24000.<br>
          <br>
          Regards,<br>
          Andrei<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
OCEANET
---------------------------------------------------------------
[AGENCE DU MANS]
7, rue des Fr&ecirc;nes
ZAC de la Pointe
72190 SARGE LES LE MANS
[t] +33 (0)2.43.50.26.50
[f] +33 (0)2.43.72.21.14

[AGENCE D'ANGERS]
5, rue Fleming
Angers Technopole
49066 ANGERS
[t] +33 (0)2.41.19.28.65
[f] +33 (0)2.52.19.22.00

<a class="moz-txt-link-freetext" href="http://www.oceanet.com">http://www.oceanet.com</a>
<a class="moz-txt-link-freetext" href="http://www.oceanet-telecom.com">http://www.oceanet-telecom.com</a>

</pre>
  </body>
</html>