<!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">
    <br>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    Hi klaus,<br>
    Suppose I can't access to NAPTR settings. <br>
    I need to manage SIP URI, so , If I right understand, the only way
    to
    use TLS protocol in kamailio 1.5 is to append ";transport=tls" in
    R-URI
    before relay.<br>
    In other words I need to rewrite R-URI:<br>
    <br>
    $ru = $ru + ";transport=tls" ;<br>
    # and the t_relay<br>
    t_relay() ;<br>
    <br>
    something like that?<br>
    <br>
    Regards,<br>
    <br>
    Daniel<br>
    <br>
    <div class="moz-signature">
      <meta http-equiv="CONTENT-TYPE" content="text/html;
        charset=ISO-8859-1">
      <title></title>
      <meta name="GENERATOR" content="OpenOffice.org 3.1 (Win32)">
      <meta name="AUTHOR" content="Alberto Vinci">
      <meta name="CREATED" content="20091103;16310000">
      <meta name="CHANGEDBY" content="Alberto Vinci">
      <meta name="CHANGED" content="20091103;16320000">
      <style type="text/css">
        <!--
                @page { margin-left: 2cm; margin-right: 2cm; margin-top: 2.5cm; margin-bottom: 2cm }
                P { margin-bottom: 0.21cm; direction: ltr; color: #000000; widows: 2; orphans: 2 }
                P.western { font-family: "Times New Roman", serif; font-size: 12pt; so-language: it-IT }
                P.cjk { font-family: "Calibri", sans-serif; font-size: 12pt }
                P.ctl { font-family: "Times New Roman", serif; font-size: 12pt; so-language: ar-SA }
                A:link { color: #0000ff }
        --></style><br>
    </div>
    <br>
    Il 08/07/2010 18.45, Matteo Campana ha scritto:
    <blockquote cite="mid:4C3600B8.3000409@klarya.it" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <br>
      <br>
      -------- Messaggio originale --------
      <table class="moz-email-headers-table" border="0" cellpadding="0"
        cellspacing="0">
        <tbody>
          <tr>
            <th nowrap="nowrap" align="RIGHT" valign="BASELINE">Oggetto:
            </th>
            <td>Re: [SR-Users] Kamailio and NAPTR lookup with TLS</td>
          </tr>
          <tr>
            <th nowrap="nowrap" align="RIGHT" valign="BASELINE">Data: </th>
            <td>Thu, 08 Jul 2010 18:44:27 +0200</td>
          </tr>
          <tr>
            <th nowrap="nowrap" align="RIGHT" valign="BASELINE">Mittente:
            </th>
            <td>Klaus Darilion <a moz-do-not-send="true"
                class="moz-txt-link-rfc2396E"
                href="mailto:klaus.mailinglists@pernau.at">&lt;klaus.mailinglists@pernau.at&gt;</a></td>
          </tr>
          <tr>
            <th nowrap="nowrap" align="RIGHT" valign="BASELINE">A: </th>
            <td>Daniel-Constantin Mierla <a moz-do-not-send="true"
                class="moz-txt-link-rfc2396E"
                href="mailto:miconda@gmail.com">&lt;miconda@gmail.com&gt;</a></td>
          </tr>
          <tr>
            <th nowrap="nowrap" align="RIGHT" valign="BASELINE">CC: </th>
            <td><a moz-do-not-send="true"
                class="moz-txt-link-abbreviated"
                href="mailto:matteo.campana@klarya.it">matteo.campana@klarya.it</a>,
              <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
                href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <pre>Am 08.07.2010 18:10, schrieb Daniel-Constantin Mierla:
&gt; Hello,
&gt;
&gt; On 7/8/10 5:59 PM, Matteo Campana wrote:
&gt;&gt;
&gt;&gt; Hi all,
&gt;&gt; I'm using kamailio 1.5 with TLS module.
&gt;&gt; I need to make ENUM query and get NAPTR record.
&gt;&gt; &gt; From NAPTR lookup, I'd like to relay my SIP Invite with tls protocol.
&gt;&gt;
&gt;&gt; How can I tell Kamailio to use TLS protocol ( instead of udp) after
&gt;&gt; NAPTR lookup ?
&gt;&gt;
&gt;&gt; I've try to set :
&gt;&gt;
&gt;&gt; dns_tls_pref=1
&gt;&gt; dns_udp_pref=2
&gt;&gt; dns_tcp_pref=3
&gt;&gt;
&gt;&gt; in the general section of kamailio.cfg, but I get a parse error.
&gt;&gt;
&gt; these parameters were introduced in kamailio with version 3.0.
&gt;
&gt; If you need TLS then it is recommended to use 3.0 anyhow, it is a far
&gt; better implementation. That will make the life easier to migrate to
&gt; upcoming 3.1 that will bring asynchronous TLS.
&gt;
&gt; No matter what you have in R-URI, you can force TLS via setting outbound
&gt; proxy address to be a TLS uri:
&gt;
&gt; $du = <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="sip:__ip_or_host__;transport=tls">"sip:__ip_or_host__;transport=tls"</a>;
&gt; t_relay();

IIRC we do have NAPTR support in Kamailio 1.5 - don't we?

Then I think it should work when putting a domain into $du and makeing 
sure that there is no transport parameter, no port, and NAPTR TLS record 
has highest priority.

regards
klaus

&gt;
&gt; The IP or host you can take from R-URI without any problem via PV $rd.
&gt; Other option is to use function from tm - t_relay_to_tls():
&gt;
&gt; <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules/tm.html#t_relay_to_udp">http://kamailio.org/docs/modules/stable/modules/tm.html#t_relay_to_udp</a>
&gt;
&gt; Cheers,
&gt; Daniel
&gt;

  </pre>
    </blockquote>
  </body>
</html>