<p>Feature Request:</p>

<p>While relaying the CANCEL, opensips create new CANCEL transaction and only pass further the reason header from the received CANCEL if 0x08 flag is set in t_relay("0x08"). It will be nice to pass any other user defined headers in CANCEL as they might be useful for the endpoints. </p>

<p>from the t_relay([flag]) documentation:<br>
0x08 - If the request is a CANCEL, trust and pass further the Reason header from the received CANCEL - shortly, will propagate the Reason header.</p>

<p>A sample CANCEL with X-USERDEFINED-HEADER is <br>
CANCEL sip:XXXX@IP:PORT SIP/2.0<br>
From: "ABC"sip:YYYY@IP:PORT;tag=389cc678-0-13c4-65014-16288-3d1c9b70-16288<br>
To: sip:XXXX@IP:PORT<br>
Call-ID: 10589b68-0-13c4-65014-16288-156334b2-16288<br>
CSeq: 1 CANCEL<br>
Via: SIP/2.0/UDP IP:PORT;branch=z9hG4bK-16288-568e507-60d8e02-38903830<br>
Reason: SIP;cause=200;text="User Release"<br>
Max-Forwards: 70<br>
Supported: timer,replaces,from-change,histinfo,answermode,eventlist,recipient-list-subscribe<br>
User-Agent: test user agent<br>
Content-Length: 0<br>
X-USERDEFINED-HEADER: "Some useful Info"</p>

<p>We are using opensips-1.11.3, is it possible to add this feature in opensips-1.11.3 release ?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/509">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcib0jKyoDo_r1ivsiYf_WSuwoOWiMks5oIy96gaJpZM4EZFkc.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/OpenSIPS/opensips/issues/509"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>