<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><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: <sip:xyz.com;transport=tls;lr=on><br>Record-Route: <sip:1.1.1.1;lr=on></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: <sip:1.1.1.1;lr=on>,<sip:xyz.com;transport=tls;lr=on></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></body>
</html>