On 1/7/11 10:08 PM, Ovidiu Sas wrote:
On Fri, Jan 7, 2011 at 3:59 PM, Klaus Darilion klaus.mailinglists@pernau.at wrote:
Bernhard Suttner wrote:
Hi,
thanks to all responses. I wonder if there is a function to modify the To/From Header stateful. I mean, change the TO header in the INVITE to A and then the 200 OK (for example) reverse the change back to the previous value to B?
but the "magic" $tU is amazing...
If you use uac_replace_from(), the changes will stateful and fixed for every in-dialog requests and responses.
AFAIR this is valid only for the initial INVITE transaction. reINVITEs and BYEs will need to be manually tweaked (if really necessary).
there are several modes, one of them is automagically for all requests in same dialog, thus including reINVITES and BYEs.
Cheers, Daniel