When canceling a call via an IMS the Ok-Response of the SIP-Cancel is not correctly send back to the originating server as the "Via-Header" is strictly followed.
Ok-Response is send back to A.B.C.215:6060 and not to dockerInternal.11:6060
A possible solution, though not fully tested will be provided with a PR.
I am not fully satisfied with the solution as it might not cover all scenarios especially as the TopViaHeader should probably get an update everytime a message is received from a foreign network?
Observation:
When canceling a call via an IMS the Ok-Response of the SIP-Cancel is not correctly send back to the originating server as the "Via-Header" is strictly followed.
Expected behaviour:
Ok-Response is send back to A.B.C.215:6060 and not to dockerInternal.11:6060
A possible solution, though not fully tested will be provided with a PR. I am not fully satisfied with the solution as it might not cover all scenarios especially as the TopViaHeader should probably get an update everytime a message is received from a foreign network?