henningw left a comment (kamailio/kamailio#4294)
If you want to manipulate the From or To user it is recommended to use the uac_replace_from/_to functions and not using the pseudo-variables for that. Furthermore you should do From/To header manipulation only one, e.g. in branch_route. For further questions please contact the sr-users mailing list.