<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="Calibri Light">thank you.<br>
      <br>
      Anther thing, when you got ACK, how opensips route it, how it will
      choose right interface?<br>
      Initial invite is send via tls to ms teams by opensips. But ACK
      which I get from another SBC is routed via UDP and not TLS? Where
      i should look for this issue?<br>
      <br>
      thank you<br>
      miha<br>
      <br>
      <br>
      U Opensips:5060 -> Another_SBC(Not opensips):5060 #5<br>
      SIP/2.0 200 OK.<br>
      FROM: <a class="moz-txt-link-rfc2396E" href="sip:0038651357952@Another_SBC(Notopensips)"><sip:0038651357952@Another_SBC(Not
      opensips)></a>;tag=3830244708-1542214291.<br>
      TO:
<a class="moz-txt-link-rfc2396E" href="sip:38618106710@Opensips;user=phone"><sip:38618106710@Opensips;user=phone></a>;tag=797d0c0c74c94df5abf29cc5ba182311.<br>
      CSEQ: 1 INVITE.<br>
      CALL-ID: <a class="moz-txt-link-abbreviated" href="mailto:16826581-3830244708-1607573954@sbc2.test.com">16826581-3830244708-1607573954@sbc2.test.com</a>.<br>
      VIA: SIP/2.0/UDP Another_SBC(Not
      opensips):5060;branch=z9hG4bK4c6433227c52d1863c051b23a170706e.<br>
      RECORD-ROUTE:
<a class="moz-txt-link-rfc2396E" href="sip:sip-du-a-eu.pstnhub.microsoft.com:5061;transport=tls;lr"><sip:sip-du-a-eu.pstnhub.microsoft.com:5061;transport=tls;lr></a>,<a class="moz-txt-link-rfc2396E" href="sip:mtsbc.test.com:5061;transport=tls;lr;r2=on;xyz=7a.468a5024"><sip:mtsbc.test.com:5061;transport=tls;lr;r2=on;xyz=7a.468a5024></a>,<a class="moz-txt-link-rfc2396E" href="sip:Opensips:5060;lr;r2=on"><sip:Opensips:5060;lr;r2=on></a>.<br>
      CONTACT:
<a class="moz-txt-link-rfc2396E" href="sip:52.114.75.24:5061;x-i=d1df8c6c-2e6c-44b8-b670-de5b94e4b93e;x-c=e6e92b7127765ed3843b370d59046d54/s/1/6cff2c6f65024a6b86a5c5f3794202a5"><sip:52.114.75.24:5061;x-i=d1df8c6c-2e6c-44b8-b670-de5b94e4b93e;x-c=e6e92b7127765ed3843b370d59046d54/s/1/6cff2c6f65024a6b86a5c5f3794202a5></a>.<br>
      Content-Length: 309.<br>
      SUPPORTED: timer.<br>
      CONTENT-TYPE: application/sdp.<br>
      ALLOW: INVITE,ACK,OPTIONS,CANCEL,BYE,NOTIFY.<br>
      REQUIRE: timer.<br>
      SESSION-EXPIRES: 3600;refresher=uac.<br>
      SERVER: Microsoft.PSTNHub.SIPProxy v.2021.5.5.15 i.EUWE.3.<br>
      <br>
      <br>
      U  Another_SBC(Not opensips):5060 -> Opensips:5060 #6<br>
      ACK
<a class="moz-txt-link-freetext" href="sip:52.114.75.24:5061;x-i=d1df8c6c-2e6c-44b8-b670-de5b94e4b93e;x-c=e6e92b7127765ed3843b370d59046d54/s/1/6cff2c6f65024a6b86a5c5f3794202a5">sip:52.114.75.24:5061;x-i=d1df8c6c-2e6c-44b8-b670-de5b94e4b93e;x-c=e6e92b7127765ed3843b370d59046d54/s/1/6cff2c6f65024a6b86a5c5f3794202a5</a>
      SIP/2.0.<br>
      Max-Forwards: 68.<br>
      Route: <a class="moz-txt-link-rfc2396E" href="sip:Opensips:5060;lr;r2=on"><sip:Opensips:5060;lr;r2=on></a>.<br>
      Route:
      <a class="moz-txt-link-rfc2396E" href="sip:mtsbc.test.com:5061;transport=tls;lr;r2=on;xyz=7a.468a5024"><sip:mtsbc.test.com:5061;transport=tls;lr;r2=on;xyz=7a.468a5024></a>.<br>
      Route:
      <a class="moz-txt-link-rfc2396E" href="sip:sip-du-a-eu.pstnhub.microsoft.com:5061;transport=tls;lr"><sip:sip-du-a-eu.pstnhub.microsoft.com:5061;transport=tls;lr></a>.<br>
      To:
<a class="moz-txt-link-rfc2396E" href="sip:38618106710@Opensips;user=phone"><sip:38618106710@Opensips;user=phone></a>;tag=797d0c0c74c94df5abf29cc5ba182311.<br>
      From: <a class="moz-txt-link-rfc2396E" href="sip:0038651357952@Another_SBC(Notopensips)"><sip:0038651357952@ Another_SBC(Not
      opensips)></a>;tag=3830244708-1542214291.<br>
      Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:16826581-3830244708-1607573954@sbc2.test.com">16826581-3830244708-1607573954@sbc2.test.com</a>.<br>
      CSeq: 1 ACK.<br>
      Via: SIP/2.0/UDP  Another_SBC(Not
      opensips):5060;branch=z9hG4bK58b13e244cbca78925b45e9bcc69d3a2.<br>
      Contact: <a class="moz-txt-link-rfc2396E" href="sip:0038651357952@Another_SBC(Notopensips):5060"><sip:0038651357952@ Another_SBC(Not
      opensips):5060></a>.<br>
      Content-Length: 0.<br>
      .<br>
      <br>
      <br>
      U Opensips:5060 -> 52.114.75.24:5061 #7<br>
      ACK
<a class="moz-txt-link-freetext" href="sip:52.114.75.24:5061;x-i=d1df8c6c-2e6c-44b8-b670-de5b94e4b93e;x-c=e6e92b7127765ed3843b370d59046d54/s/1/6cff2c6f65024a6b86a5c5f3794202a5">sip:52.114.75.24:5061;x-i=d1df8c6c-2e6c-44b8-b670-de5b94e4b93e;x-c=e6e92b7127765ed3843b370d59046d54/s/1/6cff2c6f65024a6b86a5c5f3794202a5</a>
      SIP/2.0.<br>
      Max-Forwards: 67.<br>
      Route: <a class="moz-txt-link-rfc2396E" href="sip:Opensips:5060;lr;r2=on"><sip:Opensips:5060;lr;r2=on></a>.<br>
      Route:
      <a class="moz-txt-link-rfc2396E" href="sip:mtsbc.test.com:5061;transport=tls;lr;r2=on;xyz=7a.468a5024"><sip:mtsbc.test.com:5061;transport=tls;lr;r2=on;xyz=7a.468a5024></a>.<br>
      Route:
      <a class="moz-txt-link-rfc2396E" href="sip:sip-du-a-eu.pstnhub.microsoft.com:5061;transport=tls;lr"><sip:sip-du-a-eu.pstnhub.microsoft.com:5061;transport=tls;lr></a>.<br>
      To:
<a class="moz-txt-link-rfc2396E" href="sip:38618106710@Opensips;user=phone"><sip:38618106710@Opensips;user=phone></a>;tag=797d0c0c74c94df5abf29cc5ba182311.<br>
      From: <a class="moz-txt-link-rfc2396E" href="sip:0038651357952@Another_SBC(Notopensips)"><sip:0038651357952@ Another_SBC(Not
      opensips)></a>;tag=3830244708-1542214291.<br>
      Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:16826581-3830244708-1607573954@sbc2.test.com">16826581-3830244708-1607573954@sbc2.test.com</a>.<br>
      CSeq: 1 ACK.<br>
      Via: SIP/2.0/UDP Opensips:5060;branch=z9hG4bKed06.0b1dc487.2.<br>
      Via: SIP/2.0/UDP  Another_SBC(Not
      opensips):5060;branch=z9hG4bK58b13e244cbca78925b45e9bcc69d3a2.<br>
      Contact: <a class="moz-txt-link-rfc2396E" href="sip:0038651357952@Another_SBC(Notopensips):5060"><sip:0038651357952@ Another_SBC(Not
      opensips):5060></a>.<br>
      Content-Length: 0.<br>
      <br>
      <br>
    </font><br>
    <div class="moz-cite-prefix">Callum Guy je 5/17/2021 ob 10:15
      AM napisal:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFjCFzmhLTaNE4ywnLC51GX5=Zqhw1FBjKaNNY=5n82Xbz99fg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">subst_uri only works on the request uri, try again
        with subst()!<br>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Mon, 17 May 2021 at 08:58,
          Miha via Users <<a href="mailto:users@lists.opensips.org"
            moz-do-not-send="true">users@lists.opensips.org</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> <font face="Calibri Light">Hello<br>
              <br>
              i need a little help how to chnage RR in responses to UDP
              GW (requestes goes via TLS to MS teams).<br>
              <br>
              So in reply i have like this:<br>
               RECORD-ROUTE:
              <a moz-do-not-send="true"><sip:sip-du-a-eu.pstnhub.microsoft.com:5061;transport=tls;lr></a>,<a
                moz-do-not-send="true"><sip:mtsbc.test.com:5061;transport=tls;lr;r2=on;xyz=2c.8dc02121></a>.<br>
              <br>
              But i should have like this:  </font><font face="Calibri
              Light">RECORD-ROUTE:
              <a moz-do-not-send="true"><sip:sip-du-a-eu.pstnhub.microsoft.com:5061;transport=tls;lr></a>,<a
                moz-do-not-send="true"><sip:xxx.xxx.xxx.xxxx;transport=udp;lr;r2=on;xyz=2c.8dc02121></a>.<br>
              <br>
              I tried to do it like:  subst_uri('/</font><font
              face="Calibri Light"><font face="Calibri Light"><a
                  href="http://mtsbc.test.com" target="_blank"
                  moz-do-not-send="true">mtsbc.test.com</a></font>:5061;transport=tls/xxx.xxx.xxx.xxxx:5060/i');
              but it does not match.<br>
              <br>
              <br>
              thank you<br>
              miha<br>
            </font><br>
          </div>
          _______________________________________________<br>
          Users mailing list<br>
          <a href="mailto:Users@lists.opensips.org" target="_blank"
            moz-do-not-send="true">Users@lists.opensips.org</a><br>
          <a
            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
        </blockquote>
      </div>
      <br>
      <p dir="ltr"
style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em;line-height:1.38;margin-top:0pt;margin-bottom:0pt;text-align:justify"><font
          size="3" face="Verdana"><span
style="font-size:8px;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span></font></p>
      <div
        style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><img
          src="https://www.x-on.co.uk/email/footer/banner-03-2021.jpg"
          moz-do-not-send="true"></div>
      <div
        style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><br>
      </div>
      <div>
        <div>
          <div><font
              style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"
              size="4"><b><sup><font face="Verdana">0333 332 0000  |  <a
                      href="https://www.x-on.co.uk" target="_blank"
                      moz-do-not-send="true">x-on.co.uk</a>  |  <sub> </sub></font></sup></b></font><font
style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em" size="4"><b><sub><sup><font
                      face="Verdana"><a
                        href="https://www.linkedin.com/company/x-on"
                        target="_blank" moz-do-not-send="true"><img
                          src="http://www.x-on.co.uk//images/icon/linkedin.png"
                          moz-do-not-send="true" width="24" height="24"></a>
                       <a href="https://www.facebook.com/XonTel"
                        target="_blank" moz-do-not-send="true"><img
                          src="http://www.x-on.co.uk//images/icon/facebook.png"
                          moz-do-not-send="true" width="24" height="24"></a>
                       <a href="https://twitter.com/xonuk"
                        target="_blank" moz-do-not-send="true"><img
                          src="http://www.x-on.co.uk//images/icon/twitter.png"
                          moz-do-not-send="true" width="24" height="24"></a></font></sup></sub> </b></font><b
style="font-family:Arial,Helvetica,sans-serif;font-size:large"><sup><font
                  face="Verdana">  |  <a
                    href="https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm"
                    target="_blank" moz-do-not-send="true">Coronavirus</a></font></sup></b><b
              style="font-size:16.9px"><sup><font face="Verdana">  |  <a
                    href="https://practiceindex.co.uk/gp/x-on"
                    target="_blank" moz-do-not-send="true">Practice
                    Index Reviews</a></font></sup></b><br>
            <p
              style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><span
                style="font-family:Verdana;font-size:8px"><a
                  href="http://www.itspa.org.uk/itspa-awards"
                  target="_blank" moz-do-not-send="true">THE ITSPA
                  AWARDS 2020</a> AND Best ITSP - Mid Market, Best
                Software and Best Vertical Solution are trade marks of
                the Internet Telephony Services Providers' Association,
                used under licence.</span></p>
            <p><font size="1" face="Verdana" color="#ff0000"><b>Our new
                  office address: 22 Riduna Park, Melton IP12 1QT.</b></font></p>
            <p
              style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><span
                style="font-size:6.0pt;font-family:Verdana;color:black">X-on
                is a trading name of Storacall Technology Ltd a limited
                company registered in
                England and Wales.<br>
                Registered Office : Avaland House, 110 London Road,
                Apsley, Hemel Hempstead,
                Herts, HP3 9SD. Company Registration No. 2578478.<br>
                The information in this e-mail is confidential and for
                use by the addressee(s)
                only. If you are not the intended recipient, please
                notify X-on immediately on <span>+44(0)333 332 0000</span>
                and delete the<br>
                message from your computer. If you are not a named
                addressee you must not use,
                disclose, disseminate, distribute, copy, print or reply
                to this email. </span><span
                style="font-size:6.0pt;font-family:Verdana;color:black">Views
                or opinions expressed by an individual<br>
                within this email may not necessarily
                reflect the views of X-on or its associated companies.
                Although X-on routinely
                screens for viruses, addressees should scan this email
                and any attachments<br>
                for
                viruses. X-on makes no representation or warranty as to
                the absence of viruses
                in this email or any attachments.</span></p>
            <p
              style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><span
                style="font-size:6.0pt;font-family:Verdana;color:black"></span><font
                size="2"><span
                  style="font-size:6.0pt;font-family:Verdana;color:black"></span></font></p>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>