<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
you have to add the parameter "r2=on" in order for kamailio to check
for double record-routing addresses. Also, note that the default
port for tls is 5061.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 21/05/15 18:27, NITESH BANSAL wrote:<br>
</div>
<blockquote cite="mid:SNT146-W14CBA9B615D14830D01AA2ECC10@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hello,<br>
<br>
I am trying to play with domain names in the Record-Route
header.<br>
This is for a case when kamailio is doing the translation
between UDP and TLS, so <br>
it is doing double record routing.<br>
I want to use the ip addresses on inbound UDP leg and <br>
domain names on the outbound TLS leg in record-route headers.<br>
I'm doing this by calling the following function <br>
-- <b>record_route_preset("xyz.com;transport=tls", "1.1.1.1");</b>
----<br>
This does the trick of adding a Record-Route in initial TLS
invite on the outbound leg:<br>
-----------------<b><br>
Record-Route: <a class="moz-txt-link-rfc2396E" href="sip:xyz.com;transport=tls;lr=on"><sip:xyz.com;transport=tls;lr=on></a><br>
Record-Route: <a class="moz-txt-link-rfc2396E" href="sip:1.1.1.1;lr=on"><sip:1.1.1.1;lr=on></a></b><br>
----------------<br>
<br>
My problems start when the calling party sends a ACK to kamailio
over UDP <br>
with the Route header<br>
<b>Route:
<a class="moz-txt-link-rfc2396E" href="sip:1.1.1.1;lr=on"><sip:1.1.1.1;lr=on></a>,<a class="moz-txt-link-rfc2396E" href="sip:xyz.com;transport=tls;lr=on"><sip:xyz.com;transport=tls;lr=on></a></b><br>
<br>
I call loose_route() function in config file and as per my
expectation, Kamailio should see that both<br>
these Route headers belong to Kamailio and it should use Request
URI for forwarding the ACK,<br>
but unfortunately, Kamailio thinks that xyz.com is some other
entity and tries to forward the ACK<br>
to xyz.com doing a DNS query.<br>
What can i do to avoid this problem, i need kamailio to
recognize that "xyz.com" is kamailio as i <br>
have a defined an alias in the config file too as follows:<br>
alias=xyz.com:5060<br>
<br>
Thanks for your help in advance,<br>
Nitesh<br>
<br>
<br>
<br>
<br>
</div>
<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://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>