Hi Daniel,

 

Thank you, but this is a misconception.

 

I mean the user part of the URI in the Record-Route header, eg.    “Record-Route: mo@my-scscf.my-network.com;lr”,

 

Which is either taken from the Request URI (what I do not need), or set by the AVP  “RR_CUSTOM_USER_AVP” (what I need).

 

The record_route_preset() and record_route_advertised_address() functions both ignore the RR_CUSTOM_USER_AVP (what is in my humble opinion a bug in the rr module and I am going to correct it).

 

Kind regards,

Christoph

 

Von: Daniel-Constantin Mierla <miconda@gmail.com>
Gesendet: Donnerstag, 24. Juni 2021 22:02
An: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; Valentin Christoph <Christoph.Valentin@kontron.com>
Cc: Onic Roman <Roman.Onic@kontron.com>
Betreff: Re: [SR-Users] rr module: record_route_advertised_address()/record_route_preset() do ignore custom user AVP

 

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