<p>OK, in that case I have misunderstood you. </p>

<p>Will removing the header work in case of CANCEL? </p>

<p>Are you recommending something like this?</p>

<pre><code>if (is_method("CANCEL")) {
                if($hdr(Reason)=="SIP;cause=487;text=ORIGINATOR_CANCEL") remove_hf("Reason");
                if (t_check_trans()) route(RELAY);
                exit;
        }
</code></pre>

<p>I was under the impression the headers in CANCEL cannot be controlled but that could be in old times.</p>

<p>Ta,<br>
DanB</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-125505934">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZTNLghSSDEIZEr8JdqRKf8SvRHKPks5ohzfYgaJpZM4FeeF3.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-125505934"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>