I don’t seem to find any good doc explaining if this behaviour is as designed and if I could change this behaviour or if it is doing it because of some wrong configuration in the Cisco cube.
Because of some interop issue with the ITSP I have to change the from header to be the last redirected number but I don’t want to do that for all numbers.
So I have created a LUA sip normalization script which works just fine. It is copying the diversion header directory number to the from header.
I can see that the CUBE is receiving this post-normalization SIP re-Invite but before doing any dial-peer matching and voice translations it is overriding the from number with the P-asserted identity and it seems the debug messages are telling me it does that because they are different.
Does anybody know why the cube is doing this and if I can stop this behaviour?