Hello, 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.
Cheers, Daniel On 21/05/15 18:27, NITESH BANSAL wrote: > 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 > > > > > > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.com
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users