On 3/11/13 1:42 PM, Alex Balashov wrote:
Calling multiple times with msg_apply_changes() will still result in the
stateful restoration of the original From in requests and replies going back to
the originating side?
ah, ok, I see what you meant. The restore will be to the previously
updated value. So maybe you store that in a variable, restore it in
config with msg_apply_changes(), then re-update with a new value.
Cheers,
Daniel
Daniel-Constantin Mierla <mico...@gmail.com> wrote:
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 -
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users