<html><body bgcolor="#FFFFFF"><div>The fact that there is a function in the source code does not mean you can use it in the route script; functions have to be properly defined and exposed/exported to make that happen. &nbsp;Indeed, there are far more functions in the C source than in the modules' exported parameters list.</div><div><br></div><div>Check the 'rr' module reference for more info.</div><div><br><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">--</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">This message was painstakingly thumbed out on my mobile, so apologies for brevity, errors, and general sloppiness.</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div>Alex Balashov - Principal</div><div>Evariste Systems LLC</div><div>260 Peachtree Street NW</div><div>Suite 2200</div><div>Atlanta, GA 30303</div><div>Tel: +1-678-954-0670</div><div>Fax: +1-404-961-1892</div><div>Web: <a href="http://www.evaristesys.com/"><a href="http://www.evaristesys.com/">http://www.evaristesys.com/</a></a></div></div><div><br>On Dec 2, 2011, at 2:04 PM, Gnaneshwar Gatla &lt;<a href="mailto:GGatla@InTouchHealth.com">GGatla@InTouchHealth.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><div class="WordSection1"><p class="MsoNormal">Hello,<o:p></o:p></p><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal">I have Kamailio 3.1.0 behind a NAT. We need the Firewall for sip-security reasons. <o:p></o:p></p><p class="MsoNormal">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.<o:p></o:p></p><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal">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.<o:p></o:p></p><p class="MsoNormal">Instead it inserts the internal/Local IP of the server.<o:p></o:p></p><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal">I had also noticed the record_route_preset() function does not include the transport parameter (“transport=UDP” or “transport=TLS”).<o:p></o:p></p><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal">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.<o:p></o:p></p><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal">Regards<o:p></o:p></p><p class="MsoNormal">Gnani<o:p></o:p></p></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list</span><br><span><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></span><br><span><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></span><br></div></blockquote></body></html>