<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="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 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</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=Section1>

<p class=MsoNormal><font size=2 color="#111111" face=Arial><span
style='font-size:11.0pt;font-family:Arial;color:#111111'>Hello,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#111111" face=Arial><span
style='font-size:11.0pt;font-family:Arial;color:#111111'><o:p> </o:p></span></font></p>

<pre><font size=2 face=Arial><span style='font-size:11.0pt;font-family:Arial'>I know it was already discussed, that not recommended to modify “To” header and no routing should ever be done on “To”.<o:p></o:p></span></font></pre>

<p class=MsoNormal style='background:whitesmoke;vertical-align:top'><font
size=2 color="#111111" face=Arial><span style='font-size:11.0pt;font-family:
Arial;color:#111111'>But </span></font><span class=hps><font size=2
color="#222222" face=Arial><span lang=EN style='font-size:11.0pt;font-family:
Arial;color:#222222'>as long as there</span></span> are carriers that do it, we
need full support for this manipulation for all messages in the call flow.<o:p></o:p></span></font></span></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN style='font-size:11.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='background:whitesmoke;vertical-align:top'><span
class=hps><font size=2 color="#222222" face=Arial><span lang=EN
style='font-size:11.0pt;font-family:Arial;color:#222222'>I</span></span></font></span><span
class=shorttext><font size=2 color="#222222" face=Arial><span lang=EN
style='font-size:11.0pt;font-family:Arial;color:#222222'> <span
closure_uid_853053324=65 nd=null></span></font></span><span class=hps><font
size=2 color="#222222" face=Arial><span lang=EN style='font-size:11.0pt;
font-family:Arial;color:#222222'>found in list a few</span></span> mails with the
same problem of </span></font></span><font size=2 face=Arial><span lang=EN
style='font-size:11.0pt;font-family:Arial'>wrong header “To” in
CANCEL after “To” rewriting.<o:p></o:p></span></font></p>

<p class=MsoNormal style='background:whitesmoke;vertical-align:top'><font
size=2 face=Arial><span lang=EN style='font-size:11.0pt;font-family:Arial'>And
one solution from <b><span style='font-weight:bold'>Vitaliy</span></b></span></font><b><font
size=2 face=Arial><span style='font-size:11.0pt;font-family:Arial;font-weight:
bold'> Aleksandrov :<o:p></o:p></span></font></b></p>

<p class=MsoNormal style='background:whitesmoke;vertical-align:top'><b><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-weight:bold'><a
href="http://lists.sip-router.org/pipermail/sr-dev/2012-October/016657.html">http://lists.sip-router.org/pipermail/sr-dev/2012-October/016657.html</a><o:p></o:p></span></font></b></p>

<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>“Kamailio builds "To" header from the received INVITE.<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Patch to fix it:<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>--- ./kamailio-3.2.3/modules/tm/t_cancel.c      2012-08-22 <o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>10:39:21.000000000 +0300<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>+++ ./kamailio-3.2.3-fixed/modules/tm/t_cancel.c       2012-10-01 <o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>18:25:57.000000000 +0300<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>@@ -284,7 +284,7 @@<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>         if (cfg_get(tm, tm_cfg, reparse_invite)) {<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>                 /* build the CANCEL from the INVITE which was sent out */<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>                 cancel = build_local_reparse(t, branch, &len, CANCEL, <o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>CANCEL_LEN,<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>- &t->to<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>+                                                                       NULL<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>         #ifdef CANCEL_REASON_SUPPORT<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>                                                                          , reason<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>         #endif /* CANCEL_REASON_SUPPORT */”<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face=Arial><span style='font-size:11.0pt;font-family:Arial'>We use header “To” manipulation in branch route (after failure route) and this patch solved our problem with “To” in CANCEL.<o:p></o:p></span></font></pre><pre><font
size=2 face=Arial><span style='font-size:11.0pt;font-family:Arial'><o:p> </o:p></span></font></pre><pre><font
size=2 face=Arial><span style='font-size:11.0pt;font-family:Arial'>But a patch is not committed.<o:p></o:p></span></font></pre><pre><font
size=2 face=Arial><span style='font-size:11.0pt;font-family:Arial'><o:p> </o:p></span></font></pre><pre><b><font
size=2 face=Arial><span style='font-size:11.0pt;font-family:Arial;font-weight:
bold'>Is it possible to commit this solution?<o:p></o:p></span></font></b></pre><pre><font
size=2 face=Arial><span style='font-size:11.0pt;font-family:Arial'><o:p> </o:p></span></font></pre><pre><font
size=2 face=Arial><span style='font-size:11.0pt;font-family:Arial'>Thank you,<o:p></o:p></span></font></pre><pre><font
size=2 face=Arial><span style='font-size:11.0pt;font-family:Arial'><o:p> </o:p></span></font></pre><pre><font
size=2 face=Arial><span style='font-size:11.0pt;font-family:Arial'>Julia<o:p></o:p></span></font></pre><pre><font
size=2 face=Arial><span style='font-size:11.0pt;font-family:Arial'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

</div>

</body>

</html>