Hi Alex,
If you create dialog before and use the implementation that relies on dialog variables [1], it is safe to call uac_replace_from() multiple times on the same message, or even the same initial message but looped. The module will detect that uac_replace_from() was called multiple times on the same dialog by searching after the dialog vars it has stored and it will work correctly. This is the usage that we tested and is ok. With the old implementation based on RR param, I don't think it works right calling it multiple times on the same message.
Regards, Anca
[1] http://www.kamailio.org/docs/modules/devel/modules/uac.html#id2495082
On 03/07/2013 01:11 PM, Alex Balashov wrote:
Forgive me if I failed to follow a recent discussion to its conclusion, but what is the bottom line on calling uac_replace_from() consecutively, in the course of processing one request?
Is it possible, while using restore_mode 'auto'? Is there a correct way to do it, such as calling msg_apply_changes() after the first call but not the second one?
If not, what is the alternative?
-- Alex