<!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>Hello Andrei,<br>
      <br>
      OpenSIPS preserves the interface when doing a relay (uses as
      outbound same interface as inbound) if not otherwise instructed by
      routing info (Route hdrs) or scripting.<br>
      <br>
      As ACK is a sequential request which is routed based on Route hdr,
      to see where the problem is, it is a must to see the full call
      capture from OpenSIPS - from first INVITE to ACK, both messages
      coming and leaving OpenSIPS - please post it on pastebin or so.<br>
      <br>
      Best 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 04/12/2013 11:10 PM, Andrei Grav wrote:
    <blockquote
cite="mid:CALUe06-nzeffaeTOHGhjDuFeq1Azhb3kfJmu0u5B6uN2ZWGwkw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi,<br>
        </div>
        <div><br>
        </div>
        <div>I am facing some strange situation.</div>
        <div>Opensips is listening on multiple ports on a single public
          IP 193.xx.xx.20 on ports: 5060, 26999, 36999</div>
        <div>Asterisk is on 193.xx.xx.24:5060</div>
        <div><br>
        </div>
        <div>Sometimes Opensips respond from 5060 to a 200OK instead
          received port.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>U 188.xx.xx.173:53929 -&gt; 193.xx.xx.20:26999<br>
          SIP/2.0 200 OK.<br>
          Via: SIP/2.0/UDP
          193.xx.xx.20:26999;received=193.xx.xx.20;branch=z9hG4bK46cd.df220482.1.<br>
          Via: SIP/2.0/UDP
193.xx.xx.24:5060;rport=5060;received=193.xx.xx.24;branch=z9hG4bK218bf88e.<br>
          Record-Route:
<a class="moz-txt-link-rfc2396E" href="sip:193.xx.xx.20:26999;lr;r2=on;ftag=as61ef6194;did=49d.46da2342">&lt;sip:193.xx.xx.20:26999;lr;r2=on;ftag=as61ef6194;did=49d.46da2342&gt;</a>.<br>
          Record-Route:
          <a class="moz-txt-link-rfc2396E" href="sip:193.xx.xx.20;lr;r2=on;ftag=as61ef6194;did=49d.46da2342">&lt;sip:193.xx.xx.20;lr;r2=on;ftag=as61ef6194;did=49d.46da2342&gt;</a>.<br>
          Call-ID: <a moz-do-not-send="true"
            href="mailto:5ebb1c01580da34c694b320e0627dd7f@sip.mydomain.com">5ebb1c01580da34c694b320e0627dd7f@sip.mydomain.com</a>.<br>
          From: "User" &lt;<a moz-do-not-send="true"
            href="mailto:sip%3A850010@sip.mydomain.com">sip:850010@sip.mydomain.com</a>&gt;;tag=as61ef6194.<br>
          To: &lt;<a moz-do-not-send="true"
            href="mailto:sip%3A850105@sip.mydomain.com">sip:850105@sip.mydomain.com</a>&gt;;tag=Yab-MAmXkF5lAQq2E6QpifQ8xa9xDoU7.<br>
          CSeq: 102 INVITE.<br>
          Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE,
          NOTIFY, REFER, MESSAGE, OPTIONS.<br>
          Contact: <a class="moz-txt-link-rfc2396E" href="sip:850105@188.xx.xx.173:53929;ob">&lt;sip:850105@188.xx.xx.173:53929;ob&gt;</a>.<br>
          Supported: replaces, 100rel, timer, norefersub.<br>
          Content-Type: application/sdp.<br>
          Content-Length: 294.<br>
          .<br>
          v=0.<br>
          o=- 3574781465 3574781466 IN IP4 188.xx.xx.173.<br>
          s=pjmedia.<br>
          c=IN IP4 188.xx.xx.173.<br>
          t=0 0.<br>
          m=audio 4006 RTP/AVP 18 101.<br>
          c=IN IP4 188.xx.xx.173.<br>
          a=rtcp:4007 IN IP4 188.xx.xx.173.<br>
          a=sendrecv.<br>
          a=rtpmap:18 G729/8000.<br>
          a=fmtp:18 annexb=no.<br>
          a=rtpmap:101 telephone-event/8000.<br>
          a=fmtp:101 0-15.<br>
          <br>
          <br>
          U 193.xx.xx.20:5060 -&gt; 188.xx.xx.173:53929<br>
          ACK <a class="moz-txt-link-freetext" href="sip:850105@188.xx.xx.173:53929;ob">sip:850105@188.xx.xx.173:53929;ob</a> SIP/2.0.<br>
          Via: SIP/2.0/UDP
          193.xx.xx.20:26999;branch=z9hG4bK46cd.df220482.3.<br>
          Via: SIP/2.0/UDP
193.xx.xx.24:5060;rport=5060;received=193.xx.xx.24;branch=z9hG4bK63fbcba6.<br>
          Max-Forwards: 69.<br>
          From: "User" &lt;<a moz-do-not-send="true"
            href="mailto:sip%3A850010@sip.mydomain.com">sip:850010@sip.mydomain.com</a>&gt;;tag=as61ef6194.<br>
          To: &lt;<a moz-do-not-send="true"
            href="mailto:sip%3A850105@sip.mydomain.com">sip:850105@sip.mydomain.com</a>&gt;;tag=Yab-MAmXkF5lAQq2E6QpifQ8xa9xDoU7.<br>
          Contact: <a class="moz-txt-link-rfc2396E" href="sip:850010@193.xx.xx.24:5060">&lt;sip:850010@193.xx.xx.24:5060&gt;</a>.<br>
          Call-ID: <a moz-do-not-send="true"
            href="mailto:5ebb1c01580da34c694b320e0627dd7f@sip.mydomain.com">5ebb1c01580da34c694b320e0627dd7f@sip.mydomain.com</a>.<br>
          CSeq: 102 ACK.<br>
          User-Agent: PBX.<br>
          Content-Length: 0.<br>
          .<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>the last response should send the response from port 26999
          to be ok ... or the call is hanged up after 32 seconds</div>
        <div>U 193.xx.xx.20:26999 -&gt; 188.xx.xx.173:53929</div>
        <div><br>
        </div>
        <div>any advice ?</div>
        <div><br>
        </div>
        <div>Thank you,</div>
        <div>Andrei</div>
      </div>
      <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>