On 3/11/13 11:37 AM, Daniel Tryba wrote:
On Thursday 07 March 2013 12:13:50 Alex Balashov wrote:
I realise that one logical possibility is to store the desired value in a variable, manipulate it as needed throughout the request processing flow, and just call uac_replace_from() once, at the end.
That was the conclusion for my question with multiple calls to uac_replace* Both from and to may only be called once, else the results will be unpredictable.
Calling multiple times is ok with msg_apply_changes(), if you don-t break something else. Otherwise, the safe way is to use variables and update the header in branch route.
Cheers, Daniel