<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    On 11/29/11 5:38 PM, Bruno Bresciani wrote:
    <blockquote
cite="mid:CAKv6MrY0oXaQjx7VL79fEaZ8CjW7A5oAXWM505rpuoOtt3tz=w@mail.gmail.com"
      type="cite">In my case the transport=TLS is present in contact
      header, has the same treatment of R-URI?<br>
    </blockquote>
    If it is the contact header in a request has the SIP address with
    transport TLS, then that is not used for routing. The only header
    than can enforce a destination is Route. Otherwise, the request URI
    (the address in first line of SIP request) is used for routing.<br>
    <br>
    The contact header address is to inform the other party where to
    send back requests within same dialog.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <blockquote
cite="mid:CAKv6MrY0oXaQjx7VL79fEaZ8CjW7A5oAXWM505rpuoOtt3tz=w@mail.gmail.com"
      type="cite"><br>
      Cheers<br>
      <br>
      <div class="gmail_quote">2011/11/29 Daniel-Constantin Mierla <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:miconda@gmail.com">miconda@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;">
          <div class="im"><br>
            <br>
            On 11/29/11 3:08 PM, Andrew Pogrebennyk wrote:<br>
            <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
              0.8ex; border-left: 1px solid rgb(204, 204, 204);
              padding-left: 1ex;">
              Hi Bruno,<br>
              What I have done is an explicit check<br>
              if (uri_param("transport","tls") ||
              uri_param("transport","TLS"))<br>
              to call force_send_socket with either udp or tls port.<br>
              It would be cool for kamailio to select the proper socket
              automatically,<br>
              I think there was a discussion on that previously but I
              can't find it<br>
              right now. Hopefully someone else has a hint :)<br>
              <br>
              On 11/29/2011 02:50 PM, Bruno Bresciani wrote:<br>
              <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
                0.8ex; border-left: 1px solid rgb(204, 204, 204);
                padding-left: 1ex;">
                Hi All,<br>
                <br>
                kamailio 3.1.2 recognize value "transport=TLS" on
                contact header or only<br>
                "transport=tls"?<br>
                <br>
                kamailio forwards (t_relay function) the message with
                UDP protocol when<br>
                value "transport=TLS" is on contact header.<br>
              </blockquote>
            </blockquote>
          </div>
          Kamailio is selecting the proper outbound socket when
          switching transport layers -- if the call comes via UDP and
          R-URI is over TLS, then it will send over TLS. Parsing of
          R-URI does case insensitive matching for transport parameter,
          so TLS is the same as tls. I have many configs doing transport
          gatewaying, where I don't use anything but simply t_relay()<br>
          <br>
          Can you check to see if there is no outbound proxy address set
          ($du)?<br>
          <br>
          Ultimately, maybe you can run with debug=3 and look at log
          messages.<br>
          <br>
          Cheers,<br>
          Daniel<br>
          <font color="#888888">
            <br>
            -- <br>
            Daniel-Constantin Mierla -- <a moz-do-not-send="true"
              href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
            Kamailio Advanced Training, Dec 5-8, Berlin: <a
              moz-do-not-send="true" href="http://asipto.com/u/kat"
              target="_blank">http://asipto.com/u/kat</a><br>
            <a moz-do-not-send="true"
              href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a>
            -- <a moz-do-not-send="true"
              href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
            <br>
          </font></blockquote>
      </div>
      <br>
      <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>
Kamailio Advanced Training, Dec 5-8, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>