<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi!<br>
    <br>
    I've tried some modification of in-transaction CANCEL packets.<br>
    Idea A call B, than A cancels call.<br>
    Initial CANCEL:<br>
    <br>
    <font size="-2"><font color="red"><b>CANCEL</b></font>
      sip:0919082171@XXXXXXX SIP/2.0
      <br>
      Via: SIP/2.0/UDP 31.172.143.70;rport;branch=<font color="green"><b>z9hG4bKHg59atZ9pDDHg</b></font>
      <br>
      Route: &lt;sip:31.172.143.67:5060&gt;
      <br>
      Max-Forwards: 68
      <br>
      From: "2063259" <a class="moz-txt-link-rfc2396E" href="mailto:sip:2063259@31.172.143.70">&lt;sip:2063259@31.172.143.70&gt;</a>;tag=<font
        color="red"><b>N1D0tceygg3tN</b></font>
      <br>
      To: &lt;sip:0919082171@XXXXXXXX&gt;
      <br>
      Call-ID: <font color="blue"><b>ed5d0207-9675-1232-e38f-000c29eaa3c3</b></font>
      <br>
      CSeq: 63241643 <font color="red"><b>CANCEL</b></font>
      <br>
      Reason: SIP;cause=487;text="ORIGINATOR_<font color="red"><b>CANCEL</b></font>"
      <br>
      Content-Length: 0
    </font><br>
    <br>
    I've simply add <br>
    <br>
    if (is_method("CANCEL")) {<br>
    ...<br>
    &nbsp;&nbsp;&nbsp; xlog("L_INFO", "CANCEL!");<br>
    &nbsp;&nbsp;&nbsp; append_hf("X-Hint: CANCEL!\r\n");<br>
    &nbsp;&nbsp;&nbsp; if (t_check_trans()) {<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog("L_INFO", "CANCEL is in transaction!");<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_relay();<br>
    &nbsp;&nbsp;&nbsp; }<br>
    }<br>
    <br>
    In logs I see:<br>
    <br>
    CANCEL!<br>
    CANCEL is in transaction!<br>
    <br>
    but I can't see appended header to outgoing CANCEL packet.<br>
    <br>
    Outgoing CANCEL is<br>
    <br>
    <br>
    <font size="-2"><font color="red"><b>CANCEL</b></font>
      sip:0919082171@XXXXXXX SIP/2.0
      <br>
      Via: SIP/2.0/UDP 31.172.143.67:5060;branch=<font color="green"><b>z9hG4bKed78.b56ef11.1</b></font>
      <br>
      From: "2063259" <a class="moz-txt-link-rfc2396E" href="mailto:sip:2063259@31.172.143.70">&lt;sip:2063259@31.172.143.70&gt;</a>;tag=<font
        color="red"><b>N1D0tceygg3tN</b></font>
      <br>
      Call-ID: <font color="blue"><b>ed5d0207-9675-1232-e38f-000c29eaa3c3</b></font>
      <br>
      To: &lt;sip:0919082171@XXXXXXX&gt;
      <br>
      CSeq: 63241643 <font color="red"><b>CANCEL</b></font>
      <br>
      Max-Forwards: 70
      <br>
      Reason: SIP;cause=487;text="ORIGINATOR_<font color="red"><b>CANCEL</b></font>"
      <br>
      User-Agent: OpenSIPS (1.11.2-notls (x86_64/linux))
      <br>
      Content-Length: 0
    </font><br>
    <br>
  </body>
</html>