<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
<div class="moz-cite-prefix">On 11/7/13 10:39 AM, Julia wrote:<br>
</div>
<blockquote cite="mid:364659E60F964DB9BFCCBFBDA7A4FBB5@n53113"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<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]-->
<div class="Section1">
<p class="MsoNormal"><font color="black" face="Arial"
size="2"><span style="font-size:
11.0pt;font-family:Arial;color:windowtext">Hello
Daniel,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="black" face="Arial"
size="2"><span style="font-size:
11.0pt;font-family:Arial;color:windowtext"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="black" face="Arial"
size="2"><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 color="black" face="Arial"
size="2"><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.</span></font></p>
</div>
</o:smarttagtype></o:smarttagtype></blockquote>
<br>
<font size="2"><font face="Arial">3.3.x doesn't have it. The patch
you mentioned is fixing it, but not like it is on 4.0 or master
branch -- it will just make it always to use to header from
outgoing branch. The right way is to backport from 4.0 or
master, so it preserves the behaviour when upgrading form 3.3 to
newer version. There is an item on tracker as well, but no
developer jumped on it and I couldn't find the time to check all
changes towards 4.0 and do the patch. If someone will provide
it, I will review it quickly and commit.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
</font></font>
<blockquote cite="mid:364659E60F964DB9BFCCBFBDA7A4FBB5@n53113"
type="cite"><o:smarttagtype
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="State"><o:smarttagtype
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place">
<div class="Section1">
<p class="MsoNormal"><font color="black" face="Arial"
size="2"><span style="font-size:
11.0pt;font-family:Arial;color:windowtext"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="black" face="Arial"
size="2"><span style="font-size:
11.0pt;font-family:Arial;color:windowtext"><o:p> </o:p></span></font></p>
<pre><font color="black" face="Arial" size="2"><span style="font-size:11.0pt;
font-family:Arial">Thank you,<u5:p></u5:p></span></font><o:p></o:p></pre>
<pre><font color="black" face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial"><u5:p> </u5:p></span></font><o:p></o:p></pre>
<pre><font color="black" face="Arial" size="2"><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 color="black" face="Arial"
size="2"><span style="font-size:
11.0pt;font-family:Arial;color:windowtext"><u5:p><o:p> </o:p></u5:p></span></font></p>
<p class="MsoNormal"><font color="blue" face="Arial"
size="2"><span style="font-size:
11.0pt;font-family:Arial;color:blue"><o:p> </o:p></span></font></p>
<div>
<div class="MsoNormal" style="text-align:center"
align="center"><font color="black" face="Times New
Roman" size="3"><span
style="font-size:12.0pt;color:windowtext">
<hr tabindex="-1" align="center" size="2"
width="100%">
</span></font></div>
<p class="MsoNormal"><b><font color="black" face="Tahoma"
size="2"><span
style="font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold">From:</span></font></b><font
color="black" face="Tahoma" size="2"><span
style="font-size:10.0pt;font-family:Tahoma;
color:windowtext">
<a class="moz-txt-link-abbreviated" href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>
[<a class="moz-txt-link-freetext" href="mailto:sr-users-bounces@lists.sip-router.org">mailto:sr-users-bounces@lists.sip-router.org</a>] <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 color="black" face="Times New
Roman" size="3"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font
color="black" face="Times New Roman" size="3"><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 color="black" face="Times New
Roman" size="3"><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 color="#111111" face="Arial"
size="2"><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 color="#111111" face="Arial"
size="2"><span
style="font-size:11.0pt;font-family:Arial;color:#111111"><u5:p> </u5:p></span></font><o:p></o:p></p>
<pre><font color="black" face="Arial" size="2"><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
color="#111111" face="Arial" size="2"><span
style="font-size:11.0pt;font-family:
Arial;color:#111111">But </span></font><span
class="hps"><font color="#222222" face="Arial"
size="2"><span style="font-size:11.0pt;font-family:
Arial;color:#222222" lang="EN">as long as there</span></font></span><font
color="#222222" face="Arial" size="2"><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 color="black" face="Arial"
size="2"><span
style="font-size:11.0pt;font-family:Arial" lang="EN"><u5:p> </u5:p></span></font><o:p></o:p></p>
<p class="MsoNormal"
style="background:whitesmoke;vertical-align:top"><span
class="hps"><font color="#222222" face="Arial"
size="2"><span
style="font-size:11.0pt;font-family:Arial;color:#222222"
lang="EN">I</span></font></span><span
class="shorttext"><font color="#222222" face="Arial"
size="2"><span
style="font-size:11.0pt;font-family:Arial;color:#222222"
lang="EN"> </span></font></span><span class="hps"><span
closure_uid_853053324="65" nd="null"><font
color="#222222" face="Arial" size="2"><span
style="font-size:11.0pt;font-family:Arial;color:#222222"
lang="EN"></span>found
in list a few</font></span></span><font
color="#222222" face="Arial" size="2"><span
style="font-size:10.0pt;font-family:Arial;color:#222222">
mails with the same
problem of </span></font><font face="Arial"
size="2"><span
style="font-size:11.0pt;font-family:Arial" lang="EN">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
color="black" face="Arial" size="2"><span
style="font-size:11.0pt;font-family:
Arial" lang="EN">And one solution from <b><span
style="font-weight:bold">Vitaliy</span></b></span></font><b><font
face="Arial" size="2"><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
color="black" face="Times New Roman" size="3"><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 color="black" face="Courier New" size="2"><span style="font-size:10.0pt"><u5:p> </u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><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 color="black" face="Courier New" size="2"><span style="font-size:10.0pt"><u5:p> </u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt">Patch to fix it:<u5:p></u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt"><u5:p> </u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><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 color="black" face="Courier New" size="2"><span style="font-size:10.0pt">10:39:21.000000000 +0300<u5:p></u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><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 color="black" face="Courier New" size="2"><span style="font-size:10.0pt">18:25:57.000000000 +0300<u5:p></u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt">@@ -284,7 +284,7 @@<u5:p></u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><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 color="black" face="Courier New" size="2"><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 color="black" face="Courier New" size="2"><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 color="black" face="Courier New" size="2"><span style="font-size:10.0pt">CANCEL_LEN,<u5:p></u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt">- &t->to<u5:p></u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt">+ NULL<u5:p></u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt"> #ifdef CANCEL_REASON_SUPPORT<u5:p></u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt"> , reason<u5:p></u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt"> #endif /* CANCEL_REASON_SUPPORT */”<u5:p></u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt"><u5:p> </u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt"><u5:p> </u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt"><u5:p> </u5:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Arial" size="2"><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 color="black" face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial"><u5:p> </u5:p></span></font><o:p></o:p></pre>
<pre><font color="black" face="Arial" size="2"><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 color="black" face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial"><u5:p> </u5:p></span></font><o:p></o:p></pre>
<pre><b><font color="black" face="Arial" size="2"><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 color="black" face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial"><u5:p> </u5:p></span></font><o:p></o:p></pre>
<pre><font color="black" face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial">Thank you,<u5:p></u5:p></span></font><o:p></o:p></pre>
<pre><font color="black" face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial"><u5:p> </u5:p></span></font><o:p></o:p></pre>
<pre><font color="black" face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial">Julia<u5:p></u5:p></span></font><o:p></o:p></pre>
<pre><font color="black" face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial"><u5:p> </u5:p></span></font><o:p></o:p></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt"><u5:p> </u5:p><o:p></o:p></span></font></pre>
<p class="MsoNormal"><font color="black" face="Arial"
size="2"><span style="font-size:
11.0pt;font-family:Arial"><u5:p> </u5:p></span></font><o:p></o:p></p>
<p class="MsoNormal"><font color="black" face="Times New
Roman" size="3"><span style="font-size:12.0pt"><br>
<br>
<br>
</span></font></p>
<fieldset class="mimeAttachmentHeader"></fieldset>
<font color="black" face="Times New Roman" size="3"><o:p></o:p></font>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt">_______________________________________________<o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><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 color="black" face="Courier New" size="2"><span style="font-size:10.0pt"><a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt"><a moz-do-not-send="true" 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 color="black" face="Times New
Roman" size="3"><span style="font-size:12.0pt"><br>
<br>
<o:p></o:p></span></font></p>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt">-- <o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt">Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt"><a moz-do-not-send="true" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><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 color="black" face="Courier New" size="2"><span style="font-size:10.0pt"> - more details about Kamailio trainings at <a moz-do-not-send="true" href="http://www.asipto.com">http://www.asipto.com</a> -<o:p></o:p></span></font></pre>
</div>
</o:smarttagtype></o:smarttagtype></blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Trainings - Berlin, Nov 25-28
- more details about Kamailio trainings at <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> -
</pre>
</body>
</html>