<div dir="ltr"><div>Hi Cedric,</div><div><br></div><div>#### USeR LOCation module<br></div>loadmodule &quot;usrloc.so&quot;<br>modparam(&quot;usrloc&quot;, &quot;nat_bflag&quot;, &quot;NAT&quot;)<br>modparam(&quot;usrloc&quot;, &quot;db_mode&quot;,   2)<br>
<div>modparam(&quot;usrloc&quot;, &quot;db_url&quot;,&quot;mysql://opensips:opensipsrw@localhost/opensips&quot;)<br></div><div><br></div><div><br></div><div>regards,</div><div>Andrei</div><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 7:22 PM, OCEANET - Cédric BASSAGET <span dir="ltr">&lt;<a href="mailto:cedric@oceanet.com" target="_blank">cedric@oceanet.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>What do you have in usrloc ?<br>
      <br>
      Cédric<br>
      Le 10/04/2013 18:19, Andrei Grav a écrit :<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">
        <div>Hi,</div>
        <div>I have 2 NIC&#39;s but the secodn one is not used<br>
        </div>
        <div>The opensips is listten only on eth0 with public IP and
          default route</div>
        <div>So the rtp is not in bridge mode</div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Andrei</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Apr 10, 2013 at 7:14 PM,
          OCEANET - Cédric BASSAGET <span dir="ltr">&lt;<a href="mailto:cedric@oceanet.com" target="_blank">cedric@oceanet.com</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>Hi<br>
                <br>
                Does your opensips have two network interfaces, and does
                rtpproxy works in bridge mode ?<br>
                <br>
                Cédric<br>
                <br>
                Le 10/04/2013 17:42, Andrei Grav a écrit :<br>
              </div>
              <blockquote type="cite">
                <div>
                  <div>
                    <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&#39;s<br>
                        <br>
                        I&#39;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&#39;s IP there is no audio
                        on the UAC side <br>
                        <br>
                        IF I comment the line #if (nat_uac_test(&quot;23&quot;))
                        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(&quot;23&quot;)) {<br>
                        if (is_method(&quot;REGISTER&quot;)) {<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 href="http://sip:+0080080000@myopensips.com:5060" target="_blank">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 href="mailto:sip%3A50105@myopensips.com" target="_blank">sip:50105@myopensips.com</a>&gt;;tag=szMaKKCRwqx5OGjUCwNS7F4X1ZDQpr8F.<br>
                        To: &lt;<a href="mailto:sip%3A%2B0080080000@myopensips.com" target="_blank">sip:+0080080000@myopensips.com</a>&gt;.<br>
                        Contact: <a>&lt;sip:50105@89.xxx.xxx.xxx:47054;ob&gt;</a>.<br>
                        Call-ID: sLw5Y3pTNKyBLrk2ZS9brsL87jxN6CPZ.<br>
                        CSeq: 3657 INVITE.<br>
                        Route: <a>&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></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>
              <br>
              <pre cols="72">-- 
OCEANET
---------------------------------------------------------------
[AGENCE DU MANS]
7, rue des Frênes
ZAC de la Pointe
72190 SARGE LES LE MANS
[t] <a href="tel:%2B33%20%280%292.43.50.26.50" value="+33243502650" target="_blank">+33 (0)2.43.50.26.50</a>
[f] <a href="tel:%2B33%20%280%292.43.72.21.14" value="+33243722114" target="_blank">+33 (0)2.43.72.21.14</a>

[AGENCE D&#39;ANGERS]
5, rue Fleming
Angers Technopole
49066 ANGERS
[t] <a href="tel:%2B33%20%280%292.41.19.28.65" value="+33241192865" target="_blank">+33 (0)2.41.19.28.65</a>
[f] <a href="tel:%2B33%20%280%292.52.19.22.00" value="+33252192200" target="_blank">+33 (0)2.52.19.22.00</a>

<a href="http://www.oceanet.com" target="_blank">http://www.oceanet.com</a>
<a href="http://www.oceanet-telecom.com" target="_blank">http://www.oceanet-telecom.com</a>

</pre>            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
    <pre cols="72">-- 
OCEANET
---------------------------------------------------------------
[AGENCE DU MANS]
7, rue des Frênes
ZAC de la Pointe
72190 SARGE LES LE MANS
[t] <a href="tel:%2B33%20%280%292.43.50.26.50" value="+33243502650" target="_blank">+33 (0)2.43.50.26.50</a>
[f] <a href="tel:%2B33%20%280%292.43.72.21.14" value="+33243722114" target="_blank">+33 (0)2.43.72.21.14</a>

[AGENCE D&#39;ANGERS]
5, rue Fleming
Angers Technopole
49066 ANGERS
[t] <a href="tel:%2B33%20%280%292.41.19.28.65" value="+33241192865" target="_blank">+33 (0)2.41.19.28.65</a>
[f] <a href="tel:%2B33%20%280%292.52.19.22.00" value="+33252192200" target="_blank">+33 (0)2.52.19.22.00</a>

<a href="http://www.oceanet.com" target="_blank">http://www.oceanet.com</a>
<a href="http://www.oceanet-telecom.com" target="_blank">http://www.oceanet-telecom.com</a>

</pre>  </div></div></div>

</blockquote></div><br></div>