[SR-Users] rr module: record_route_advertised_address()/record_route_preset() do ignore custom user AVP
Daniel-Constantin Mierla
miconda at gmail.com
Fri Jun 25 10:08:15 CEST 2021
Hello,
it does not work if you do:
$var(rruser) = "mo";
record_route_preset("$var(rruser)@1.2.3.4:5060");
Cheers,
Daniel
On 25.06.21 09:58, Valentin Christoph wrote:
>
> 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 at my-scscf.my-network.com;lr
> <mailto:mo at 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 at gmail.com>
> *Gesendet:* Donnerstag, 24. Juni 2021 22:02
> *An:* Kamailio (SER) - Users Mailing List
> <sr-users at lists.kamailio.org>; Valentin Christoph
> <Christoph.Valentin at kontron.com>
> *Cc:* Onic Roman <Roman.Onic at 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 <https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.asipto.com%2F&data=04%7C01%7CChristoph.Valentin%40kontron.com%7C98367d7cefa346c726b008d9374b0141%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637601618270351401%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2BvfDkhXGCnaqEC9rxSdYG1S%2FlzH9aElkbzcRPlI1JGw%3D&reserved=0>
> www.twitter.com/miconda <https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.twitter.com%2Fmiconda&data=04%7C01%7CChristoph.Valentin%40kontron.com%7C98367d7cefa346c726b008d9374b0141%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637601618270351401%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=dK8%2BRhGHE1i9dBij93DsKhVZz8FMSRCxTnfzUIW6ujw%3D&reserved=0> -- www.linkedin.com/in/miconda <https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.linkedin.com%2Fin%2Fmiconda&data=04%7C01%7CChristoph.Valentin%40kontron.com%7C98367d7cefa346c726b008d9374b0141%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637601618270361356%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=zQJ3lKi1bYpUB862HHRNYszED%2B%2Bjf5USQ3W3jXuzIT4%3D&reserved=0>
--
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/20210625/170ad853/attachment.htm>
More information about the sr-users
mailing list