I had the same problem with CANCEL requests for transactions created by an INVITE that was rewritten in a branch_route. I sent a small patch to dev list in October and didn't receive any comment. You can try to find it in sr-dev archive for October 2012.
Yes, we know it's wrong. But if we really need it, is there a way to do it?
-----Original Message----- From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesday, January 30, 2013 4:36 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] How to rewrite "tu" in CANCEL message ?
On 01/30/2013 09:31 AM, Julia wrote:
We need some number manipulation for outgoing calls to PSTN GW. The same manipulations must be in "ru" and "tu", because our PSTN GW adds redirection when tu ≠ ru. When we used INVITE re-parsing for CANCEL, modified "tu" is not included.
I would say your PSTN GW is doing it wrong. No routing should ever be done on To. It is a purely cosmetic commentary on the intended logical destination of the call. Only the RURI should be used for that.