The proxy generates the CANCEL, therefore it sets its own To-tag. In the case of single
branch forwarding, what you want may work, but parallel/serieal forking is a common
scenario and then the INVITE has many outgoing branches, each of them responding with
different To-tag, it such case the UA receives many To-tags as well and therefore it
should cope with them and be RFC3261 compliant.
As a possible workaround, for the simple case of sending out a single branch, directly to
UAS, maybe you can get it working by storing the R-URI/$ru (eventually also the dst
uri/$du) of the outgoing INVITE in htable by call-id and when CANCEL is processed use them
to send it out in stateless mode (with forward()). The INVITE transaction won't be
cancelled by kamailio, but the UAS will respond with 487 that will terminate it.
Given the above remarks, I won't keep this feature request open, because seems of very
little usefulness. Obviously, a pull request adding such behaviour will be considered for
merging (it has to be configurable via modparam). If no registered developed commits to
add it and wants this item open here, it will be closed soon.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3021#issuecomment-1036292943
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3021/1036292943(a)github.com>