<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">On 6/6/13 4:34 PM, Stoyan Mihaylov
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPScudZWwBpCWeXf8bN5YLyZyr7sX_s1nwDF2kwPUmO7rj5dfQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">We had some similar problems.</div>
    </blockquote>
    <br>
    But what was the actual problem? At least in the two ACKs provided
    below, loose routing handling with looks correct.<br>
    <br>
    Is something that Asterisk doesn't like?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
cite="mid:CAPScudZWwBpCWeXf8bN5YLyZyr7sX_s1nwDF2kwPUmO7rj5dfQ@mail.gmail.com"
      type="cite">
      <div dir="ltr"> Our configuration is:
        <div>SIP client 1 <-> Kamailio <-> Asterisk
          <->Kamailio<->SIP client 2</div>
        <div>My solution was to check $td and $si and if they are same
          as Kamailio, to forward call to Asterisk.</div>
        <div>Because I planed to use more then 1 Asterisk, I keep in
          variable which one to use.</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Thu, Jun 6, 2013 at 5:28 PM,
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank">miconda@gmail.com</a>></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"> Hello,<br>
              <br>
              the incoming ACK has the top Route with lr parameter,
              meaning is loose routing. By that, the proxy removes the
              top route header, preserves the R-URI and sends to the URI
              in the next Route header.<br>
              <br>
              From what I can see in the Route stack, it seems a spiral
              back to the proxy because ip 81.21.38.34 is two times
              there.<br>
              <br>
              If you can't sort it out, send the full SIP trace taken on
              the proxy from the initial INVITE to the ACK. Then we can
              see how Record-Route headers are set and the signaling
              flow.<br>
              <br>
              Cheers,<br>
              Daniel<br>
              <br>
              <div>On 6/6/13 3:30 PM, phillman25 wrote:<br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">Dear list further to the above problem i
                  observed the following:
                  <div><br>
                  </div>
                  <div>ACK message coming from PABX1:</div>
                  <div><br>
                  </div>
                  <div>
                    <div>U +0.001877 <a moz-do-not-send="true"
                        href="http://192.168.10.189:5060"
                        target="_blank">192.168.10.189:5060</a> -> <a
                        moz-do-not-send="true"
                        href="http://81.21.38.34:5060" target="_blank">81.21.38.34:5060</a></div>
                    <div>ACK <a moz-do-not-send="true"
                        href="mailto:sip%3A94294294@81.21.38.55"
                        target="_blank">sip:94294294@81.21.38.55</a>
                      SIP/2.0*</div>
                    <div>Via: SIP/2.0/UDP
                      192.168.10.189:5060;branch=z9hG4bK76f8f103;rport*</div>
                    <div>Route: <a moz-do-not-send="true"><sip:81.21.38.34;lr=on;ftag=as181922af;did=c83.f641></a>,<<a
                        moz-do-not-send="true"
                        href="mailto:sip%3A94294294@81.21.38.5"
                        target="_blank">sip:94294294@81.21.38.5</a>;pgw-call=call-2aa6>,<a
                        moz-do-not-send="true"><sip:81.21.38.34;lr=on;ftag=as181922af></a>*</div>
                    <div>Max-Forwards: 70*</div>
                    <div>From: "22498045" <<a moz-do-not-send="true"
                        href="mailto:sip%3A22498045@192.168.10.189"
                        target="_blank">sip:22498045@192.168.10.189</a>>;tag=as181922af*</div>
                    <div>To: <<a moz-do-not-send="true"
                        href="mailto:sip%3A94294294@81.21.38.34"
                        target="_blank">sip:94294294@81.21.38.34</a>>;tag=3d95248-37261551-13c4-50022-1c3096-5cc2673d-1c3096*</div>
                    <div>Contact: <<a moz-do-not-send="true"
                        href="http://sip:22498045@192.168.10.189:5060"
                        target="_blank">sip:22498045@192.168.10.189:5060</a>>*</div>
                    <div>Call-ID: <a moz-do-not-send="true"
                        href="mailto:696cfa577f42395767bc812e7e8a38a5@192.168.10.189:5060*"
                        target="_blank">696cfa577f42395767bc812e7e8a38a5@192.168.10.189:5060*</a></div>
                    <div>CSeq: 102 ACK*</div>
                    <div>User-Agent: FPBX-2.8.1(1.8.21.0)*</div>
                    <div>Content-Length: 0*</div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <div>ACK message sent to PGW from Kamailio1</div>
                    <div><br>
                    </div>
                    <div>
                      <div>U +0.001254 <a moz-do-not-send="true"
                          href="http://81.21.38.34:5060" target="_blank">81.21.38.34:5060</a>
                        -> <a moz-do-not-send="true"
                          href="http://81.21.38.5:5060" target="_blank">81.21.38.5:5060</a></div>
                      <div>ACK <a moz-do-not-send="true"
                          href="mailto:sip%3A94294294@81.21.38.55"
                          target="_blank">sip:94294294@81.21.38.55</a>
                        SIP/2.0*</div>
                      <div>Via: SIP/2.0/UDP
                        81.21.38.34;branch=z9hG4bKc526.9402c2edbc3ef96d9e405408364506a9.0*</div>
                      <div>Via: SIP/2.0/UDP
                        192.168.10.189:5060;branch=z9hG4bK76f8f103;rport=5060*</div>
                      <div>Route: <<a moz-do-not-send="true"
                          href="mailto:sip%3A94294294@81.21.38.5"
                          target="_blank">sip:94294294@81.21.38.5</a>;pgw-call=call-2aa6>,<a
                          moz-do-not-send="true"><sip:81.21.38.34;lr=on;ftag=as181922af></a>*</div>
                      <div>Max-Forwards: 16*</div>
                      <div>From: "22498045" <<a
                          moz-do-not-send="true"
                          href="mailto:sip%3A22498045@192.168.10.189"
                          target="_blank">sip:22498045@192.168.10.189</a>>;tag=as181922af*</div>
                      <div>To: <<a moz-do-not-send="true"
                          href="mailto:sip%3A94294294@81.21.38.34"
                          target="_blank">sip:94294294@81.21.38.34</a>>;tag=3d95248-37261551-13c4-50022-1c3096-5cc2673d-1c3096*</div>
                      <div>Contact: <<a moz-do-not-send="true"
                          href="http://sip:22498045@192.168.10.189:5060"
                          target="_blank">sip:22498045@192.168.10.189:5060</a>>*</div>
                      <div>Call-ID: <a moz-do-not-send="true"
                          href="mailto:696cfa577f42395767bc812e7e8a38a5@192.168.10.189:5060*"
                          target="_blank">696cfa577f42395767bc812e7e8a38a5@192.168.10.189:5060*</a></div>
                      <div>CSeq: 102 ACK*</div>
                      <div>User-Agent: FPBX-2.8.1(1.8.21.0)*</div>
                      <div>Content-Length: 0*</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div> <br>
                      </div>
                      <div>Shouldn't the ACK  message to the PGW have
                        the header ACK <a moz-do-not-send="true"
                          href="mailto:sip%3A94294294@81.21.38.5"
                          target="_blank">sip:94294294@81.21.38.5</a>;pgw-call=call-2aa6

                        and the Route: <a moz-do-not-send="true"><sip:81.21.38.34;lr=on;ftag=as181922af></a>*
                          ???</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>Your help is much appreciated!!</div>
                      <div><br>
                      </div>
                      <div>Phillip</div>
                    </div>
                    <div><br>
                    </div>
                  </div>
                </div>
                <div class="gmail_extra"> <br>
                  <br>
                  <div class="gmail_quote">On Thu, Jun 6, 2013 at 12:26
                    PM, phillman25 <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:phillman25@gmail.com"
                        target="_blank">phillman25@gmail.com</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">Dear List
                        <div><br>
                        </div>
                        <div>I upgraded from Kamailio v 3.3 to 4.0.1 and
                          am now facing an issue for the below scenario:</div>
                        <div><br>
                        </div>
                        <div>PABX1 ==> Kamailio1 ==> Cisco PGW
                          ==> Kamailio1 ==> PABX2<br>
                        </div>
                        <div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div>I understand that this is a hairpin
                            scenario but was working normally on v 3.3.</div>
                          <div><br>
                          </div>
                          <div>Checking in the syslog i see:</div>
                          <div>ERROR: <core> [receive.c:230]:
                            ERROR: receive_msg: no via found in reply<br>
                          </div>
                        </div>
                        <div><br>
                        </div>
                        <div>Checking the sip trace i see that when
                          calling from PABX1 to PABX2. After PABX2
                          answers and the the 200 OK  is eventually sent
                           to PABX1 , PABX1 answers with ACK but seems
                          like its not sent back to PABX2  as a result
                          PABX resends a 200 OK and the cycle continues
                          until PABX2 sends a BYE message. Please see
                          below the ACK received from PABX1:</div>
                        <div><br>
                        </div>
                        <div><font
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px"
                            color="#336600">ACK <a
                              moz-do-not-send="true"
                              href="mailto:sip%3A94294294@81.21.38.55"
                              target="_blank">sip:94294294@81.21.38.55</a>
                            SIP/2.0</font><br
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">
                          <font
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px"
                            color="red">Via</font><span
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">:
                            SIP/2.0/UDP
                            192.168.10.189:5060;branch=z9hG4bK6bffe37c;rport</span><br
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">
                          <font
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px"
                            color="red">Route</font><span
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">:
                            <a moz-do-not-send="true"><sip:81.21.38.34;lr=on;ftag=as1cd4f8f1;did=e36.c471></a>,<<a
                              moz-do-not-send="true"
                              href="mailto:sip%3A94294294@81.21.38.5"
                              target="_blank">sip:94294294@81.21.38.5</a>;pgw-call=call-26eb>,<a
                              moz-do-not-send="true"><sip:81.21.38.34;lr=on;ftag=as1cd4f8f1></a></span><br
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">
                          <font
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px"
                            color="red">Max-Forwards</font><span
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">:
                            70</span><br
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">
                          <font
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px"
                            color="red">From</font><span
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">:
                            "22498045" <<a moz-do-not-send="true"
                              href="mailto:sip%3A22498045@192.168.10.189"
                              target="_blank">sip:22498045@192.168.10.189</a>>;tag=as1cd4f8f1</span><br
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">
                          <font
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px"
                            color="red">To</font><span
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">:
                            <<a moz-do-not-send="true"
                              href="mailto:sip%3A94294294@81.21.38.34"
                              target="_blank">sip:94294294@81.21.38.34</a>>;tag=3d94f08-37261551-13c4-50022-1c1e67-87fe958-1c1e67</span><br
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">
                          <font
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px"
                            color="red">Contact</font><span
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">:
                            <<a moz-do-not-send="true"
                              href="http://sip:22498045@192.168.10.189:5060"
                              target="_blank">sip:22498045@192.168.10.189:5060</a>></span><br
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">
                          <font
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px"
                            color="red">Call-ID</font><span
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">:
                            <a moz-do-not-send="true"
                              href="http://03042a717e27a87e759f7f4879e70377@192.168.10.189:5060"
                              target="_blank">03042a717e27a87e759f7f4879e70377@192.168.10.189:5060</a></span><br
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">
                          <font
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px"
                            color="red">CSeq</font><span
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">:
                            102 ACK</span><br
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">
                          <font
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px"
                            color="red">User-Agent</font><span
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">:
                            FPBX-2.8.1(1.8.21.0)</span><br
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">
                          <font
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px"
                            color="red">Content-Length</font><span
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">:
                            0</span><br>
                        </div>
                        <div> <span
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px"><br>
                          </span></div>
                        <div><span
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px"><br>
                          </span></div>
                        <div><span
style="font-family:Arial,Verdana,sans-serif;font-size:11.818181991577148px">Is

                            there an issue with the above ACK message?
                            Is there any way to solve this issue quickly
                            perhaps by disabling loose route?</span></div>
                        <div><font face="Arial, Verdana, sans-serif"><span
                              style="font-size:12px">I have observed
                              that this issue occurs only when
                              hairpinned. </span></font></div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>Thanking you in advance!</div>
                        <div><br>
                        </div>
                        <div>Phillip</div>
                        <div><br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
                <br>
                <fieldset></fieldset>
                <br>
                <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
                <span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
              <span class="HOEnZb"><font color="#888888"> <br>
                  <pre cols="72">-- 
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
  * <a moz-do-not-send="true" href="http://asipto.com/u/katu" target="_blank">http://asipto.com/u/katu</a> *</pre>
                </font></span></div>
            <br>
            _______________________________________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
  * <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a> *</pre>
  </body>
</html>