<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>if you have kamailio 5.2, you should enable ignore of sips in rr:</p>
    <p>  -
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/rr.html#rr.p.ignore_sips">https://www.kamailio.org/docs/modules/stable/modules/rr.html#rr.p.ignore_sips</a></p>
    <p>If you have an older version, just before use of record_route
      inside kamailio.cfg, do:</p>
    <p>if (uri=~"^sips:") {</p>
    <p>   $ru = "sip:" + $(ru{s.substr,5,0});</p>
    <p>}</p>
    <p>The presence of sips in r-uri of invite forces rr to set
      record-route with sips, but this results in some UAs just clone
      the uri scheme, not really understanding its purpose, anyhow, as
      already mentioned here, sips is a mess over all, so disabling it
      is safer. That's why I started to add options to kamailio to just
      ignore it.<br>
    </p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 24.02.19 23:31, David Cunningham
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHGbP-88YiB6WdX4Ua2-fmV=sbkyeOc3jXM5T6ZLGg-botB6UQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div>Hi Daniel,</div>
          <div><br>
          </div>
          <div>Certainly, here is the sequence including INVITE and 200
            OK. I note that the Contact on the 200 OK doesn't mention
            TLS, but the Record-Route header does.<br>
          </div>
          <div>Thank you.</div>
          <div><br>
            Session Initiation Protocol (INVITE)<br>
                Request-Line: INVITE <a
              href="http://sips:105@es8.example.com:5061"
              moz-do-not-send="true">sips:105@es8.example.com:5061</a>
            SIP/2.0<br>
                Message Header<br>
                    Via: SIP/2.0/TLS
            50.78.xx.xx:5061;branch=z9hG4bK1836763299<br>
                    Route: <a class="moz-txt-link-rfc2396E" href="sip:70.42.yy.yy:5061;transport=tls;lr"><sip:70.42.yy.yy:5061;transport=tls;lr></a><br>
                    From: ES8 Test 102 <<a
              href="mailto:sips%3A111111@es8.example.com"
              moz-do-not-send="true">sips:111111@es8.example.com</a>>;tag=Nf5GG!Orq!MSmGfeu66F03F2114df82b<br>
                    To: <<a
              href="http://sips:105@es8.example.com:5061"
              moz-do-not-send="true">sips:105@es8.example.com:5061</a>><br>
                    Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:222222@50.78.xx.xx">222222@50.78.xx.xx</a><br>
                    CSeq: 94679 INVITE<br>
                    Contact:
            <a class="moz-txt-link-rfc2396E" href="mailto:sips:111111@50.78.xx.xx:5061;transport=tls"><sips:111111@50.78.xx.xx:5061;transport=tls></a><br>
                    Supported: 100rel<br>
                    Proxy-Authorization: Digest username="111111",
            realm="<a href="http://es8.example.com"
              moz-do-not-send="true">es8.example.com</a>",
            nonce="XG71VFxu9CjpZnZTIQhhf5V1KmKWmQes", uri="<a
              href="mailto:sip%3A105@192.168.3.1" moz-do-not-send="true">sip:105@192.168.3.1</a>;user=phone",
            response="60059b561416f1a184d556d5cf116014", algorithm=MD5<br>
                    Max-Forwards: 70<br>
                    User-Agent: ewb2bua/15.3.0<br>
                    Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, REFER,
            NOTIFY, INFO, PRACK, UPDATE, MESSAGE<br>
                    Content-Type: application/sdp<br>
                    Content-Length:   387<br>
                Message Body<br>
            <br>
            <br>
            Session Initiation Protocol (200)<br>
                Status-Line: SIP/2.0 200 OK<br>
                Message Header<br>
                    Via: SIP/2.0/TLS
            50.78.xx.xx:5061;rport=43290;branch=z9hG4bK1836763299<br>
                    Record-Route: <sips:70.42.yy.yy;r2=on;lr=on><br>
                    Record-Route:
            <sips:70.42.yy.yy:5061;transport=tls;r2=on;lr=on><br>
                    From: ES8 Test 102 <<a
              href="mailto:sips%3A111111@es8.example.com"
              moz-do-not-send="true">sips:111111@es8.example.com</a>>;tag=Nf5GG!Orq!MSmGfeu66F03F2114df82b<br>
                    To: <<a
              href="http://sips:105@es8.example.com:5061"
              moz-do-not-send="true">sips:105@es8.example.com:5061</a>>;tag=as7a72b209<br>
                    Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:222222@50.78.xx.xx">222222@50.78.xx.xx</a><br>
                    CSeq: 94679 INVITE<br>
                    Server: ES8<br>
                    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
            SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE<br>
                    Supported: replaces, timer<br>
                    Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sips:105@70.42.yy.yy:5070"><sips:105@70.42.yy.yy:5070></a><br>
                    Content-Type: application/sdp<br>
                    Content-Length: 337<br>
                Message Body<br>
            <br>
            <br>
            Session Initiation Protocol (ACK)<br>
                Request-Line: ACK <a class="moz-txt-link-abbreviated" href="mailto:sips:105@70.42.xx.xx:5070">sips:105@70.42.xx.xx:5070</a> SIP/2.0<br>
                Message Header<br>
                    Via: SIP/2.0/TLS
            50.78.yy.yy:5061;branch=z9hG4bK741961203<br>
                    Route:
            <sips:70.42.xx.xx:5061;transport=tls;r2=on;lr=on><br>
                    Route: <sips:70.42.xx.xx;r2=on;lr=on><br>
                    From: ES8 Test 102 <<a
              href="mailto:sips%3A111111@es8.example.com"
              moz-do-not-send="true">sips:111111@es8.example.com</a>>;tag=Nf5GG!Orq!MSmGfeu66F03F2114df82b<br>
                    To: <<a
              href="http://sips:105@es8.example.com:5061"
              moz-do-not-send="true">sips:105@es8.example.com:5061</a>>;tag=as7a72b209<br>
                    Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:222222@50.78.yy.yy">222222@50.78.yy.yy</a><br>
                    CSeq: 94679 ACK<br>
                    Contact:
            <a class="moz-txt-link-rfc2396E" href="mailto:sips:111111@50.78.yy.yy:5061;transport=tls"><sips:111111@50.78.yy.yy:5061;transport=tls></a><br>
                    Max-Forwards: 70<br>
                    User-Agent: ewb2bua/15.3.0<br>
                    Content-Length: 0<br>
            <br>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, 22 Feb 2019 at 20:16,
          Daniel-Constantin Mierla <<a
            href="mailto:miconda@gmail.com" moz-do-not-send="true">miconda@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor="#FFFFFF">
            <p>Hello,</p>
            <p>do you have the INVITE and the 200ok corresponding to
              this ACK? I need to see the R-URI of INVITE as well as the
              contact in 200ok in order to analyze why sips appears in
              ACK.<br>
            </p>
            <p>SIPS requirements are sort of a mess, probably the best
              would be to let it for config to decide when to allow
              forwarding or not in case of sips URI.</p>
            <p>Cheers,<br>
              Daniel<br>
            </p>
            <div class="gmail-m_-8712203262127663602moz-cite-prefix">On
              22.02.19 02:58, David Cunningham wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <div dir="ltr">
                  <div>Hello all,</div>
                  <div><br>
                  </div>
                  <div>We're having an issue with Kamailio not
                    processing an ACK and hope someone can help. A PCAP
                    shows that Kamailio is receiving the ACK, and we
                    believe these log messages are directly related to
                    it:</div>
                  <div dir="ltr"><br>
                    Feb 21 10:54:01 hostname /sbin/kamailio[15854]:
                    ERROR: tm [ut.h:279]: uri2dst2(): ERROR: uri2dst:
                    bad transport for sips uri: 1<br>
                    Feb 21 10:54:01 hostname /sbin/kamailio[15854]:
                    ERROR: tm [t_fwd.c:1777]: t_forward_nonack(): ERROR:
                    t_forward_nonack: failure to add branches<br>
                    Feb 21 10:54:01 hostname /sbin/kamailio[15854]:
                    ERROR: sl [sl_funcs.c:387]: sl_reply_error(): ERROR:
                    sl_reply_error used: Unresolvable destination
                    (478/SL)<br>
                    <div><br>
                    </div>
                    <div>The ACK is as follows. It's from telephone
                      111111 which is using TLS, which Kamailio listens
                      for on port 5061.</div>
                    <div>Does anyone know which URI has the bad
                      transport as per the error above? Might it be the
                      From URI "<a
                        href="mailto:sips%3A111111@es8.example.com"
                        target="_blank" moz-do-not-send="true">sips:111111@es8.example.com</a>"
                      because it doesn't specify port 5061?</div>
                    <div>Thank you in advance.<br>
                    </div>
                    <div><br>
                      Session Initiation Protocol (ACK)<br>
                          Request-Line: ACK <a
                        class="gmail-m_-8712203262127663602moz-txt-link-abbreviated"
                        href="mailto:sips:105@70.42.xx.xx:5070"
                        target="_blank" moz-do-not-send="true">sips:105@70.42.xx.xx:5070</a>
                      SIP/2.0<br>
                          Message Header<br>
                              Via: SIP/2.0/TLS
                      50.78.yy.yy:5061;branch=z9hG4bK741961203<br>
                              Route:
                      <sips:70.42.xx.xx:5061;transport=tls;r2=on;lr=on><br>
                              Route:
                      <sips:70.42.xx.xx;r2=on;lr=on><br>
                              From: ES8 Test 102 <<a
                        href="mailto:sips%3A111111@es8.example.com"
                        target="_blank" moz-do-not-send="true">sips:111111@es8.example.com</a>>;tag=Nf5GG!Orq!MSmGfeu66F03F2114df82b<br>
                              To: <<a
                        href="http://sips:105@es8.example.com:5061"
                        target="_blank" moz-do-not-send="true">sips:105@es8.example.com:5061</a>>;tag=as7a72b209<br>
                              Call-ID: <a
                        class="gmail-m_-8712203262127663602moz-txt-link-abbreviated"
                        href="mailto:222222@50.78.yy.yy" target="_blank"
                        moz-do-not-send="true">222222@50.78.yy.yy</a><br>
                              CSeq: 94679 ACK<br>
                              Contact: <a
                        class="gmail-m_-8712203262127663602moz-txt-link-rfc2396E"
href="mailto:sips:111111@50.78.yy.yy:5061;transport=tls" target="_blank"
                        moz-do-not-send="true"><sips:111111@50.78.yy.yy:5061;transport=tls></a><br>
                              Max-Forwards: 70<br>
                              User-Agent: ewb2bua/15.3.0<br>
                              Content-Length: 0<br>
                    </div>
                    <div><br>
                    </div>
                    -- <br>
                    <div dir="ltr"
                      class="gmail-m_-8712203262127663602gmail_signature">
                      <div dir="ltr">
                        <div>
                          <div dir="ltr">
                            <div>
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr">
                                    <div>
                                      <div dir="ltr">
                                        <div>David Cunningham, Voisonics
                                          Limited<br>
                                          <a
                                            href="http://voisonics.com/"
                                            target="_blank"
                                            moz-do-not-send="true">http://voisonics.com/</a><br>
                                          USA: +1 213 221 1092<br>
                                          New Zealand: +64 (0)28 2558
                                          3782</div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <br>
              <fieldset
                class="gmail-m_-8712203262127663602mimeAttachmentHeader"></fieldset>
              <pre class="gmail-m_-8712203262127663602moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="gmail-m_-8712203262127663602moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="gmail-m_-8712203262127663602moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
            </blockquote>
            <pre class="gmail-m_-8712203262127663602moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="gmail-m_-8712203262127663602moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
<a class="gmail-m_-8712203262127663602moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="gmail-m_-8712203262127663602moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="gmail-m_-8712203262127663602moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank" moz-do-not-send="true">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="gmail-m_-8712203262127663602moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a></pre>
          </div>
        </blockquote>
      </div>
      <br clear="all">
      <br>
      -- <br>
      <div dir="ltr" class="gmail_signature">
        <div dir="ltr">
          <div>
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>David Cunningham, Voisonics Limited<br>
                            <a href="http://voisonics.com/"
                              target="_blank" moz-do-not-send="true">http://voisonics.com/</a><br>
                            USA: +1 213 221 1092<br>
                            New Zealand: +64 (0)28 2558 3782</div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
  </body>
</html>