<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>Hi, <br>
      <br>
      The main question is "Is your opensips behind a NAT dealing with
      public traffic? " or the other way around (opensips is public and
      client is private) ?<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <br>
    On 07/10/2012 10:59 PM, Ignacio Gonzalez wrote:
    <blockquote
cite="mid:CAL5dx5QdKFs4zTRPMPhxZN5BhncSc9JV4f0B9-yh2mN8=RP5sQ@mail.gmail.com"
      type="cite">So adding this to my configuration file, do I fix the
      problem?<br>
      <br>
      Do I need to set advertised_address or not?<br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">2012/7/10 Ali Pey <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:alipey@gmail.com"
            target="_blank">alipey@gmail.com</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">On the reply route try something like
          this:
          <div><br>
          </div>
          <div>
            <div>onreply_route[1] {</div>
            <div><span style="white-space: pre-wrap;"> </span>xlog("reply
              route 1: sequential requests ($rs $rr)\n");</div>
            <div><span style="white-space: pre-wrap;"> </span>if (
              src_ip != onebox_asterisk1_ip &amp;&amp; src_ip !=
              onebox_asterisk2_ip ){</div>
            <div><span style="white-space: pre-wrap;"> </span>if (
              nat_uac_test( "31") ) {</div>
            <div><span style="white-space: pre-wrap;"> </span>fix_nated_contact();</div>
            <div><span style="white-space: pre-wrap;"> </span>force_rport();</div>
            <div><span style="white-space: pre-wrap;"> </span>if(
              has_body( "application/sdp" ) ) {</div>
            <div><span style="white-space: pre-wrap;"> </span>fix_nated_sdp(
              "3" );</div>
            <div><span style="white-space: pre-wrap;"> </span>}</div>
            <div><span style="white-space: pre-wrap;"> </span>}</div>
            <div><span style="white-space: pre-wrap;"> </span>}</div>
            <div>}</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>Regards,</div>
            <div>Ali Pey</div>
            <div><br>
            </div>
            <br>
            <div class="gmail_quote">
              <div>
                <div class="h5">On Tue, Jul 10, 2012 at 2:00 PM, Ignacio
                  Gonzalez <span dir="ltr">&lt;<a
                      moz-do-not-send="true"
                      href="mailto:mylaneza@gmail.com" target="_blank">mylaneza@gmail.com</a>&gt;</span>
                  wrote:<br>
                </div>
              </div>
              <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
                0.8ex; border-left: 1px solid rgb(204, 204, 204);
                padding-left: 1ex;">
                <div>
                  <div class="h5">Hello everybody, I installed and
                    configured opensips with a residential configuration
                    setting NAT Traversal and Multidomain options with
                    the opensips configuration tool. When I try to make
                    a call with two users, the ACK method of the caller
                    party never reaches the called party.<br>
                    <br>
                    This are the messages received in the called party:<br>
                    <br>
                    <br>
                    INVITE <a class="moz-txt-link-freetext" href="sip:ralvarez@domain;transport=udp">sip:ralvarez@domain;transport=udp</a> SIP/2.0<br>
                    Via: SIP/2.0/UDP
10.151.199.52:45084;branch=z9hG4bK-d8754z-06f2fafe119979f6-1---d8754z-;rport<br>
                    Max-Forwards: 70<br>
                    Contact:
                    <a class="moz-txt-link-rfc2396E" href="sip:2427001@201.255.1.30:45084;transport=udp">&lt;sip:2427001@201.255.1.30:45084;transport=udp&gt;</a><br>
                    To: <a class="moz-txt-link-rfc2396E" href="sip:ralvarez@domain">&lt;sip:ralvarez@domain&gt;</a><br>
                    From: <a class="moz-txt-link-rfc2396E" href="sip:2427001@domain">&lt;sip:2427001@domain&gt;</a>;tag=2627e587<br>
                    Call-ID:
                    ZTg3YjI0ZGNiYjVjZjZlMDRlNjU1Mzg1ZGJkMWQ0NmQ.<br>
                    CSeq: 2 INVITE<br>
                    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
                    NOTIFY, MESSAGE, SUBSCRIBE, INFO<br>
                    Content-Type: application/sdp<br>
                    Proxy-Authorization: Digest
username="2427001",realm=:"domain",nonce="4ffbbd42000000478de4c68512245fee27f7dadd4549c048",uri=<a class="moz-txt-link-rfc2396E" href="sip:ralvarez@domain;transport=udp">"sip:ralvarez@domain;transport=udp"</a>,response="8fe20af4d2a381cc6a4ebd3ac1162f69",algorithm=MD5<br>
                    Supported: replaces<br>
                    User-Agent: X-Lite 4 release 4.1 stamp 63214<br>
                    Content-Length: 410<br>
                    <br>
                    v=0<br>
                    o=- 12986371568156250 1 IN IP4 10.151.199.52<br>
                    s=CounterPath X-Lite 4.1<br>
                    c=IN IP4 10.151.166.52<br>
                    t=0 0<br>
                    a=ice-ufrag:6079ef<br>
                    a=ice-pwd:8febe129544f5ec86474270bef1a9214<br>
                    m=audio 53146 RTP/AVP 107 0 8 101<br>
                    a=rtpmap:107 BV32/16000<br>
                    a=rtpmap:101 telephone-event/8000<br>
                    a=fmtp:101 0-15<br>
                    a=sendrecv<br>
                    a=candidate:1 1 UDP 659136 10.151.199.52 53146 typ
                    host<br>
                    a=candidate:1 2 UDP 659134 10.151.199.52 53147 typ
                    host<br>
                    <br>
                    SIP/2.0 100 Giving a try<br>
                    Via: SIP/2.0/UDP
10.151.199.52:45084;received=201.255.1.30;branch=z9hG4bK-d8754z-06f2fafe119979f6-1---d8754z-;rport=45084<br>
                    To: <a class="moz-txt-link-rfc2396E" href="sip:ralvarez@domain">&lt;sip:ralvarez@domain&gt;</a><br>
                    From: <a class="moz-txt-link-rfc2396E" href="sip:2427001@domain">&lt;sip:2427001@domain&gt;</a>;tag=2627e587<br>
                    Call-ID:
                    ZTg3YjI0ZGNiYjVjZjZlMDRlNjU1Mzg1ZGJkMWQ0NmQ.<br>
                    CSeq: 2 INVITE<br>
                    Server: OpenSIPS (1.8.0-notls (i386/linux))<br>
                    Content-Length: 0<br>
                    <br>
                    SIP/2.0 180 Ringing<br>
                    Via: SIP/2.0/UDP
10.151.199.52:45084;received=201.255.1.30;branch=z9hG4bK-d8754z-06f2fafe119979f6-1---d8754z-;rport=45084<br>
                    Record-Route:
                    <a class="moz-txt-link-rfc2396E" href="sip:192.100.1.220;lr;did=af5.ad45d1c6;nat=yes">&lt;sip:192.100.1.220;lr;did=af5.ad45d1c6;nat=yes&gt;</a><br>
                    <b>Contact:
                      <a class="moz-txt-link-rfc2396E" href="sip:ralvarez@192.100.1.1:30612;rinstance=e0b11e2eb514ba1c">&lt;sip:ralvarez@192.100.1.1:30612;rinstance=e0b11e2eb514ba1c&gt;</a></b><br>
                    To: <a class="moz-txt-link-rfc2396E" href="sip:ralvarez@domain">&lt;sip:ralvarez@domain&gt;</a>;tag=e637fa0f<br>
                    From: <a class="moz-txt-link-rfc2396E" href="sip:2427001@domain">&lt;sip:2427001@domain&gt;</a>;tag=2627e587<br>
                    Call-ID:
                    ZTg3YjI0ZGNiYjVjZjZlMDRlNjU1Mzg1ZGJkMWQ0NmQ.<br>
                    CSeq: 2 INVITE<br>
                    User-Agent: X-Lite release 1002tx stamp 29712<br>
                    Content-Length: 0<br>
                    <br>
                    SIP/2.0 200 OK<br>
                    Via: SIP/2.0/UDP
10.151.199.52:45084;received=201.255.1.30;branch=z9hG4bK-d8754z-06f2fafe119979f6-1---d8754z-;rport=45084<br>
                    Record-Route:
                    <a class="moz-txt-link-rfc2396E" href="sip:192.100.1.220;lr;did=af5.ad45d1c6;nat=yes">&lt;sip:192.100.1.220;lr;did=af5.ad45d1c6;nat=yes&gt;</a><br>
                    <b>Contact:
                      <a class="moz-txt-link-rfc2396E" href="sip:ralvarez@192.100.1.1:30612;rinstance=e0b11e2eb514ba1c">&lt;sip:ralvarez@192.100.1.1:30612;rinstance=e0b11e2eb514ba1c&gt;</a></b><br>
                    To: <a class="moz-txt-link-rfc2396E" href="sip:ralvarez@domain">&lt;sip:ralvarez@domain&gt;</a>;tag=e637fa0f<br>
                    From: <a class="moz-txt-link-rfc2396E" href="sip:2427001@domain">&lt;sip:2427001@domain&gt;</a>;tag=2627e587<br>
                    Call-ID:
                    ZTg3YjI0ZGNiYjVjZjZlMDRlNjU1Mzg1ZGJkMWQ0NmQ.<br>
                    CSeq: 2 INVITE<br>
                    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
                    NOTIFY, MESSAGE, SUBSCRIBE, INFO<br>
                    Content-Type: application/sdp<br>
                    <br>
                    .... More OK responses ( retries )<br>
                    <br>
                    BYE <a class="moz-txt-link-freetext" href="sip:2427001@201.255.1.30:45084;transport=udp">sip:2427001@201.255.1.30:45084;transport=udp</a>
                    SIP/2.0<br>
                    Via: SIP/2.0/UDP
                    192.100.1.220;branch=z9hG4bKe265.bd09554.0<br>
                    Via: SIP/2.0/UDP
192.100.1.200:30612;received=192.168.1.200;branch=z9hG4bK-d87543-4677b2285a79346c-1--d87543-;rport=30612<br>
                    Max-Forwards: 69<br>
                    Contact:
                    <a class="moz-txt-link-rfc2396E" href="sip:ralvarez@192.100.1.200:30612;rinstance=e0b11e2eb514ba1c">&lt;sip:ralvarez@192.100.1.200:30612;rinstance=e0b11e2eb514ba1c&gt;</a><br>
                    To: <a class="moz-txt-link-rfc2396E" href="sip:2427001@domain">&lt;sip:2427001@domain&gt;</a>;tag=2627e587<br>
                    From: <a class="moz-txt-link-rfc2396E" href="sip:ralvarez@domain">&lt;sip:ralvarez@domain&gt;</a>;tag=e637fa0f<br>
                    Call-ID:
                    ZTg3YjI0ZGNiYjVjZjZlMDRlNjU1Mzg1ZGJkMWQ0NmQ.<br>
                    CSeq: 2 BYE<br>
                    User-Agent: X-Lite release 1002tx stamp 29712<br>
                    Reason: SIP;description="ACK not received"<br>
                    Content-Length: 0<br>
                    <br>
                    SIP/2.0 200 OK<br>
                    Via: SIP/2.0/UDP
                    192.100.1.220;branch=z9hG4bKe265.bd09554.0;received=24.94.9.135<br>
                    Via: SIP/2.0/UDP
192.100.1.200:30612;received=192.100.1.200;branch=z9hG4bK-d87543-4677b2285a79346c-1--d87543-;rport=30612<br>
                    Contact:
                    <a class="moz-txt-link-rfc2396E" href="sip:2427001@201.255.1.30:45084;transport=udp">&lt;sip:2427001@201.255.1.30:45084;transport=udp&gt;</a><br>
                    To: <a class="moz-txt-link-rfc2396E" href="sip:2427001@domain">&lt;sip:2427001@domain&gt;</a>;tag=2627e587<br>
                    From: <a class="moz-txt-link-rfc2396E" href="sip:ralvarez@domain">&lt;sip:ralvarez@domain&gt;</a>;tag=e637fa0f<br>
                    Call-ID:
                    ZTg3YjI0ZGNiYjVjZjZlMDRlNjU1Mzg1ZGJkMWQ0NmQ.<br>
                    CSeq: 2 BYE<br>
                    User-Agent: X-Lite 4 release 4.1 stamp 63214<br>
                    Content-Length: 0<br>
                    <br>
                    -----------------------------------------------<br>
                    I need to fix the contact header value because the
                    IP address is behind the NAT and is not reachable
                    from the caller party location. I don't know how to
                    do this, reading some answers in the users mail list
                    i found that setting the global parameter
                    "advertised_address" in the configuration file it
                    will solved it but I'm not sure, can anybody tell me
                    if this is correct?<br>
                    <br>
                    Thanks for all.<br>
                    <br>
                    <br>
                    <br>
                  </div>
                </div>
                _______________________________________________<br>
                Users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
                <a moz-do-not-send="true"
                  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>
          <br>
          _______________________________________________<br>
          Users mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
          <a moz-do-not-send="true"
            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>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
  </body>
</html>