<p>Yes, you can't control much of headers in the CANCEL, but here is about propagating Reason header from incoming CANCEL to the outgoing one. If you remove it from incoming one and then do msg_apply_changes() before tm gets the chance to look at CANCEL, then there is nothing found to propagate.</p>

<p>I added a note to the docs of t_set_no_e2e_cancel_reason() about its usage for INVITE. I will look when I get a chance to see if it can be expanded to work when used for CANCEL.</p>

<p>For now I will close this issue. </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/261#issuecomment-126041808">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZW1i4TISVkdTrVeYWqT7BbnvAm1Aks5oiQx4gaJpZM4FeeF3.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/261#issuecomment-126041808"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>