<!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">
Hi Daniel,<br>
I have followed your instruction (I'm using kamailio 1.5) and before
the t_relay("0x05") statement I've setted:<br>
<br>
$du="sip:" + $rd + ";transport=tls";<br>
<br>
but I get the following mesasge:<br>
<br>
<pre>Jul 14 15:17:55 OVSIPP /usr/local/sbin/kamailio[7790] Request leaving server, <b>D<u>-URI='<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:garr.it;transport=tls">sip:garr.it;transport=tls</a>'</u></b> - M=INVITE RURI=<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:xxx@garr.it">sip:xxx@garr.it</a>
F=<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:yyyyy@sip.mydomqin.it:5066">sip:yyyyy@sip.mydomqin.it:5066</a> T=<a moz-do-not-send="true" class="moz-txt-link-freetext" href="sip:123456789@sip.mydomain.it:5066">sip:123456789@sip.mydomain.it:5066</a>
Jul 14 15:17:55 OVSIPP /usr/local/sbin/kamailio[7790]: CRITICAL:core:mk_proxy: could not resolve hostname: "garr.it"
Jul 14 15:17:55 OVSIPP /usr/local/sbin/kamailio[7790]: ERROR:tm:uri2proxy: bad host name in URI <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="sip:garr.it;transport=tls"><sip:garr.it;transport=tls></a>
Jul 14 15:17:55 OVSIPP /usr/local/sbin/kamailio[7790]: ERROR:tm:t_forward_nonack: failure to add branches</pre>
<br>
<br>
Therefore I would like to use information about TLS connection (tls
port?) got from NAPTR record. <br>
Doesn't it possible with kamailio 1.5 ?<br>
<br>
Many thanks,<br>
<br>
Daniel<br>
<p class="western" style="margin-bottom: 0cm;"><br>
</p>
<br>
Il 08/07/2010 18.12, Matteo Campana ha scritto:
<blockquote cite="mid:4C35F90A.7010005@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:10:35 +0200</td>
</tr>
<tr>
<th nowrap="nowrap" align="RIGHT" valign="BASELINE">Mittente:
</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">A: </th>
<td><a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:matteo.campana@klarya.it">matteo.campana@klarya.it</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:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>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();
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
--
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a>
</pre>
</blockquote>
</body>
</html>