<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:st1="urn:schemas-microsoft-com:office:smarttags" 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)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
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";
        color:black;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:blue;
        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 bgcolor=white lang=EN-US link=blue vlink=purple>

<div class=Section1>

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

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

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:windowtext'>Version 3.3.5,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
11.0pt;font-family:Arial;color:windowtext'>We use uac_replace_to() in branch
route and without patch the “To” in local CANCEL is taken from
original INVITE.<o:p></o:p></span></font></p>

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

<pre><font size=2 color=black face=Arial><span style='font-size:11.0pt;
font-family:Arial'>Thank you,<u5:p></u5:p></span></font><o:p></o:p></pre><pre><font
size=2 color=black face=Arial><span style='font-size:11.0pt;font-family:Arial'><u5:p> </u5:p></span></font><o:p></o:p></pre><pre><font
size=2 color=black face=Arial><span style='font-size:11.0pt;font-family:Arial'>Julia<u5:p></u5:p></span></font><o:p></o:p></pre>

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

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

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> sr-users-bounces@lists.sip-router.org
[mailto:sr-users-bounces@lists.sip-router.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Daniel-Constantin Mierla<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, November 07, 2013
11:30 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Kamailio (SER) - Users Mailing
List<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [SR-Users] Wrong
"To" header in CANCEL, when "To" has been rewritten by
uac_replace_to() in branch route</span></font><font color=black><span
style='color:windowtext'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>Hello,<br>
<br>
what version do you have and what function is used to change the To header?<br>
<br>
If you use uac_replace_to() with latest stable version, the new To header
should be used for local CANCEL and ACK.<br>
<br>
Cheers,<br>
Daniel<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>On 11/7/13 9:31 AM, Julia wrote:<o:p></o:p></span></font></p>

</div>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'
cite="mid:E0EAE6F4DDAA40158859AB4D2E133E43@n53113" type=cite><!--[if gte mso 9]><xml>
 <u1:shapedefaults u2:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <u3:shapelayout u4:ext="edit">
  <u3:idmap u4:ext="edit" data="1"/>
 </u3:shapelayout>
</xml><![endif]-->

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

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

<pre><font size=2 color=black 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”.<u5:p></u5:p></span></font><o:p></o:p></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></font></span><font size=2
color="#222222" face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:#222222'> are carriers that do it, we need full support for this
manipulation for all messages in the call flow.</span><u5:p></u5:p></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN
style='font-size:11.0pt;font-family:Arial'><u5:p> </u5:p></span></font><o:p></o:p></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></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></font></span><span
class=hps><span closure_uid_853053324=65 nd=null><font size=2 color="#222222"
face=Arial><span lang=EN style='font-size:11.0pt;font-family:Arial;color:#222222'></span>found
in list a few</span></font></span><font size=2 color="#222222" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#222222'> mails with the same
problem of </span></font><font size=2 face=Arial><span lang=EN
style='font-size:11.0pt;font-family:Arial'>wrong header “To” in
CANCEL after “To” rewriting.<u5:p></u5:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='background:whitesmoke;vertical-align:top'><font
size=2 color=black 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 :<u5:p></u5:p></span></font></b><o:p></o:p></p>

<p class=MsoNormal style='background:whitesmoke;vertical-align:top'><b><font
size=3 color=black 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"
moz-do-not-send=true>http://lists.sip-router.org/pipermail/sr-dev/2012-October/016657.html</a><u5:p></u5:p></span></font></b><o:p></o:p></p>

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

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

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset><o:p></o:p></span></font></p>

<pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>_______________________________________________<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></span></font></pre></blockquote>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><br>
<br>
<o:p></o:p></span></font></p>

<pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>-- <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Daniel-Constantin Mierla - <a
href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a
href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Kamailio Advanced Trainings - <st1:State
w:st="on"><st1:place w:st="on">Berlin</st1:place></st1:State>, Nov 25-28<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  - more details about Kamailio trainings at <a
href="http://www.asipto.com">http://www.asipto.com</a> -<o:p></o:p></span></font></pre></div>

</body>

</html>