[SR-Users] How to change R-URI Username

SamyGo govoiper at gmail.com
Thu Dec 14 19:20:48 CET 2017


Hi,
I think you can modify $rU anytime in the configuration , that error is
possibly from uac_replace_to() (or uac_replcae_from()) function after the
record_route().  Try commenting them out and see if the error goes away.

Regards,
Sammy


On Thu, Dec 14, 2017 at 1:09 PM, Duarte Rocha <duarterocha91 at gmail.com>
wrote:

> Hey everyone.
>
> I'm doing some Calling Number and Called Number normalization at the
> beggining and end of the Kamailio. At the end, i'm doing it in the Dispatch
> Route.
>
> In order to change the numbers, i use uac_replace_to() and
> uac_replace_from(). However, i don't have a function like this for the
> R-URI username. I'm trying to change the $rU variable, but i can't apply
> changes since i get this error from msg_apply_changes() :  "cannot apply
> msg changes after adding record-route header - it breaks conditional 2nd
> header"
>
> Is there any other way to do this operation?
>
> Thanks in advance.
>
> Cheers
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171214/7f0f93a6/attachment.html>


More information about the sr-users mailing list