<div dir="ltr">Hi,<div>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.</div><div><br></div><div>Regards,</div><div>Sammy</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 14, 2017 at 1:09 PM, Duarte Rocha <span dir="ltr"><<a href="mailto:duarterocha91@gmail.com" target="_blank">duarterocha91@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey everyone.<div><br></div><div>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.</div><div><br></div><div>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"</div><div><br></div><div>Is there any other way to do this operation? </div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Cheers</div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div>