Hello,

On 24.06.21 21:41, Valentin Christoph wrote:

Hi,

 

Maybe a discussion for the DEV mailing list????

 

Want to overwrite the FQDN by a NATed IP address in the topmost Record-Route of an outgoing INVITE request.

 

Cannot set the advertise parameter (this must tell the FQDN for all other situations), only in some special situations I want to overwrite the FQDN in Record-Route.

 

My solution would be to implement in the Kamailio source code (rr module) that not only record_route() uses the get_custom_user() function, but the other both functions uses it, too.

 

Any better proposals?

the record_route_preset() supports variables inside its parameters, so you can do:

$var(rr) = "1.2.3.4:5060";

record_route_preset("$var(rr)");

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda