<!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"><klaus.mailinglists@pernau.at></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"><miconda@gmail.com></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:
> Hello,
>
> On 7/8/10 5:59 PM, Matteo Campana wrote:
>>
>> Hi all,
>> I'm using kamailio 1.5 with TLS module.
>> I need to make ENUM query and get NAPTR record.
>> > From NAPTR lookup, I'd like to relay my SIP Invite with tls protocol.
>>
>> How can I tell Kamailio to use TLS protocol ( instead of udp) after
>> NAPTR lookup ?
>>
>> I've try to set :
>>
>> dns_tls_pref=1
>> dns_udp_pref=2
>> dns_tcp_pref=3
>>
>> in the general section of kamailio.cfg, but I get a parse error.
>>
> these parameters were introduced in kamailio with version 3.0.
>
> If you need TLS then it is recommended to use 3.0 anyhow, it is a far
> better implementation. That will make the life easier to migrate to
> upcoming 3.1 that will bring asynchronous TLS.
>
> No matter what you have in R-URI, you can force TLS via setting outbound
> proxy address to be a TLS uri:
>
> $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>;
> 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
>
> The IP or host you can take from R-URI without any problem via PV $rd.
> Other option is to use function from tm - t_relay_to_tls():
>
> <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>
>
> Cheers,
> Daniel
>
</pre>
</blockquote>
</body>
</html>