[SR-Users] Change the SIP-To-User

Daniel-Constantin Mierla miconda at gmail.com
Fri Jan 7 23:55:49 CET 2011



On 1/7/11 10:08 PM, Ovidiu Sas wrote:
> On Fri, Jan 7, 2011 at 3:59 PM, Klaus Darilion
> <klaus.mailinglists at 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

-- 
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
http://www.asipto.com




More information about the sr-users mailing list