<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi Rahul,<br>
<br>
As per RFC3261, the stateful CANCELs are hop-by-hop - which means
each hop consumes the incoming CANCEL and generates a new one for
the next hop.<br>
This is why the headers do not propagate.<br>
<br>
What kind of headers are looking to be passed further ?<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 06.05.2015 20:45, Gupta, Rahul
wrote:<br>
</div>
<blockquote
cite="mid:5D7DF326E497124DACCD6F9DD6A1A2A089C96A74@NWKNJEXMBX1.corp.root.ipc.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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]-->
<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 size="2" color="#808080" face="Arial"><font size="2"
color="#808080" face="Arial">------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</font></font></p>
<font size="2" color="#808080" face="Arial">
</font>
<p><font size="2" color="#808080" face="Arial"><font size="2"
color="#808080" 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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>