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...
Best regards, Bernhard
----- Original Message ----- From: Olle E. Johansson [mailto:oej@edvina.net] To: Alex Balashov [mailto:abalashov@evaristesys.com] Cc: sr-users@lists.sip-router.org Sent: Fri, 07 Jan 2011 11:09:41 +0100 Subject: Re: [SR-Users] Change the SIP-To-User
7 jan 2011 kl. 10.55 skrev Alex Balashov:
On 01/07/2011 04:52 AM, Carsten Bock wrote:
the trick, when using "uac_replace_from" is, that it will "automagically" change subsequest requests. This is required in order to work with most SIP-Endpoints. If you just want to change the "From" for the current request, that is
fine.
I understand. Changing To/From by a proxy has long been a thorny issue,
in the sense that on the one hand those fields are purely cosmetic in strict-3261 mode, but on the other hand, changing them breaks 2543 compatibility, and it's just not something a proxy is supposed to do. Well, that changed with a new rfc (put number here) about caller ID updates. I do not remember the proxy role, but a UA can now change From/To identities mid call, like after a call transfer in a pbx.
/O _______________________________________________ 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
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.
But there is no similar feature for To header manipulation.
regards klaus
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).
Regards, Ovidiu Sas
But there is no similar feature for To header manipulation.
regards klaus
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