<p></p>
<p dir="auto">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.</p>
<p dir="auto">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.</p>
<p dir="auto">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.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/3021#issuecomment-1036292943">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNUDDKO3J5S6M3X4ZLU2UPGLANCNFSM5N3P4IRQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZOJNMGE4K2FJF6LU2DU2UPGLA5CNFSM5N3P4IR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHXCJGTY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/3021/1036292943</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/3021#issuecomment-1036292943",
"url": "https://github.com/kamailio/kamailio/issues/3021#issuecomment-1036292943",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>