[SR-Users] rr module: record_route_advertised_address()/record_route_preset() do ignore custom user AVP

Daniel-Constantin Mierla miconda at gmail.com
Thu Jun 24 22:02:27 CEST 2021


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210624/b7e6c8b2/attachment.htm>


More information about the sr-users mailing list