Hello,
I am trying to play with domain names in the Record-Route
header.
This is for a case when kamailio is doing the translation
between UDP and TLS, so
it is doing double record routing.
I want to use the ip addresses on inbound UDP leg and
domain names on the outbound TLS leg in record-route headers.
I'm doing this by calling the following function
--
record_route_preset("xyz.com;transport=tls", "1.1.1.1");
----
This does the trick of adding a Record-Route in initial TLS
invite on the outbound leg:
-----------------
Record-Route: <sip:xyz.com;transport=tls;lr=on>
Record-Route: <sip:1.1.1.1;lr=on>
----------------
My problems start when the calling party sends a ACK to kamailio
over UDP
with the Route header
Route:
<sip:1.1.1.1;lr=on>,<sip:xyz.com;transport=tls;lr=on>
I call loose_route() function in config file and as per my
expectation, Kamailio should see that both
these Route headers belong to Kamailio and it should use Request
URI for forwarding the ACK,
but unfortunately, Kamailio thinks that xyz.com is some other
entity and tries to forward the ACK
to xyz.com doing a DNS query.
What can i do to avoid this problem, i need kamailio to
recognize that "xyz.com" is kamailio as i
have a defined an alias in the config file too as follows:
alias=xyz.com:5060
Thanks for your help in advance,
Nitesh