Hello,

$rU (along with $ru, $rd ...) can be changed at any time and they are taken in consideration always. You do not need to do msq_apply_changes() at all when $rU is updated.

What do you expect to happen that you have the feeling that the change of $rU doesn't get persistent?

Cheers,
Daniel

On 14.12.17 20:57, Duarte Rocha wrote:
Thanks for your answer.

It doesn't go away when i delete those lines. In fact, i'm using them only to avoid this kind of errors.

If i comment out msg_apply_changes() the changes to $rU don't get persistent and i can't find another method to change it.


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com