[SR-Users] Multiple calls uac_replace_from()

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 11 13:24:30 CET 2013


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

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
  - http://conference.kamailio.com -




More information about the sr-users mailing list