<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black;background:white">I am using opensips as a proxy, when a CANCEL to an INVITE comes in, its processed as follows<span class="apple-converted-space"> </span></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black"><br>
<br>
<span style="background:white"> # CANCEL processing<span class="apple-converted-space"> </span></span><br>
<span style="background:white"> if (is_method("CANCEL"))<span class="apple-converted-space"> </span></span><br>
<span style="background:white"> {<span class="apple-converted-space"> </span></span><br>
<span style="background:white"> if (t_check_trans())<span class="apple-converted-space"> </span></span><br>
<span style="background:white"> t_relay();<span class="apple-converted-space"> </span></span><br>
<span style="background:white"> exit;<span class="apple-converted-space"> </span></span><br>
<span style="background:white"> }<span class="apple-converted-space"> </span></span><br>
<br>
<span style="background:white">in t_relay() seems like its creating new transaction for CANCEL and forwarding to the destination. However its not copying user-defined Headers which comes as a part of CANCEL. Is there a way to forward the other Headers ?<span class="apple-converted-space"> </span></span><br>
<br>
<span style="background:white">I also tried using forward(). In this case, all the headers are getting forwarded, however, the branch in Via header is getting duplicated from the incoming VIA header which is causing issues with the endpoint.<span class="apple-converted-space"> </span></span><br>
<br>
<span style="background:white">Question 1) If I use t_realy() for CANCEL, then how do I forward user defined Headers ?<span class="apple-converted-space"> </span></span><br>
<span style="background:white">Question 2) If I use forward() for CANCEL, then how do I get the Via Header with proper branch as created in INVITE ?<span class="apple-converted-space"> </span></span></span><o:p></o:p></p>
</div>
<p><font color="#808080" size="2" face="Arial"><font color="#808080" size="2" face="Arial">------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</font></p>
<p><font color="#808080" size="2" face="Arial">DISCLAIMER: This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it
by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unintended recipients are prohibited from taking action on the basis of information in this e-mail.E-mail messages may contain computer viruses or
other defects, may not be accurately replicated on other systems, or may be intercepted, deleted or interfered with without the knowledge of the sender or the intended recipient. If you are not comfortable with the risks associated with e-mail messages, you
may decide not to use e-mail to communicate with IPC. IPC reserves the right, to the extent and under circumstances permitted by applicable law, to retain, monitor and intercept e-mail messages to and from its systems.</font></font><br>
</p>
<br>
</body>
</html>