Per my understanding the uac module stores the "vsf" parameter in Record-Route and should be able to update the From/To URIs automatically in all in-dialog requests that carry this parameter. http://kamailio.org/docs/modules/stable/modules/uac.html#uac.p.restore_mode
“auto” - all sequential requests and replies will be automatically updated based on stored original URI. For this option you have to set “modparam("rr", "append_fromtag", 1)”.
What makes me wonder is: does that only work in From/To was changed by uac_replace_from()/uac_replace_to() or also when assigning directly to the $fu and $tu variables? I'm changing those variables and I am using restore_mode auto but that does not change anything in in-dialog ACK. I presume this is expected behavior because I'm not using uac when assigning to variables, isn't it?
Thanks. Andrew
Indeed; writing to $tu/$fu does not encapsulate uac module functionality. It just straight-up modifies the URIs.
-- Alex Balashov | Principal | Evariste Systems LLC 1447 Peachtree Street NE, Suite 700 Atlanta, GA 30309 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Sent from my BlackBerry.