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@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@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users