[SR-Users] How to i use record_route_advertised_address

Ovidiu Sas osas at voipembedded.com
Sat Dec 3 16:57:29 CET 2011


Take a look at set_advertised_address:
http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x#set_advertised_address
Set it and then record_route() will properly fill the Record-Route header.


Regards,
Ovidiu Sas

-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

On Fri, Dec 2, 2011 at 2:04 PM, Gnaneshwar Gatla
<GGatla at intouchhealth.com> wrote:
> Hello,
>
>
>
> I have Kamailio 3.1.0 behind a NAT. We need the Firewall for sip-security
> reasons.
>
> Currently I’m using record_route_preset(“advertised_Address”) for keeping
> the advertised address in the record-route header. This works for fine when
> I have all clients running on UDP protocol.
>
>
>
> I currently have some TLS clients added to our network, Kamailio does not
> insert the second record-route header with the advertised-IP whenever there
> is a call between a UDP and a TLS Client.
>
> Instead it inserts the internal/Local IP of the server.
>
>
>
> I had also noticed the record_route_preset() function does not include the
> transport parameter (“transport=UDP” or “transport=TLS”).
>
>
>
> I was looking through the source code of Kamailio and found
> record_route_advertised_address() in record.c . I would like to know how to
> use this function with the Kamailio config.
>
>
>
> Regards
>
> Gnani
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>



More information about the sr-users mailing list