<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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<br>
<br>
<div class="moz-cite-prefix">On 11/7/13 9:31 AM, Julia wrote:<br>
</div>
<blockquote cite="mid:E0EAE6F4DDAA40158859AB4D2E133E43@n53113"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<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]-->
<div class="Section1">
<p class="MsoNormal"><font color="#111111" face="Arial" size="2"><span
style="font-size:11.0pt;font-family:Arial;color:#111111">Hello,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="#111111" face="Arial" size="2"><span
style="font-size:11.0pt;font-family:Arial;color:#111111"><o:p> </o:p></span></font></p>
<pre><font 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”.<o:p></o:p></span></font></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"> are carriers that do
it, we
need full support for this manipulation for all messages in
the call flow.<o:p></o:p></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:11.0pt;
font-family:Arial" lang="EN"><o:p> </o:p></span></font></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 closure_uid_853053324="65" nd="null"></span></span></font></span><span
class="hps"><font color="#222222" face="Arial" size="2"><span
style="font-size:11.0pt;
font-family:Arial;color:#222222" lang="EN">found in list
a few</span></font></span><font color="#222222"
face="Arial" size="2"> mails with the
same problem of </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.<o:p></o:p></span></font></p>
<p class="MsoNormal"
style="background:whitesmoke;vertical-align:top"><font
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 :<o:p></o:p></span></font></b></p>
<p class="MsoNormal"
style="background:whitesmoke;vertical-align:top"><b><font
face="Times New Roman" size="3"><span
style="font-size:12.0pt;font-weight:bold"><a
moz-do-not-send="true"
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 face="Courier New" size="2"><span style="font-size:10.0pt"><o:p> </o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt">“Kamailio builds "To" header from the received INVITE.<o:p></o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt"><o:p> </o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt">Patch to fix it:<o:p></o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt"><o:p> </o:p></span></font></pre>
<pre><font face="Courier New" size="2"><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 face="Courier New" size="2"><span style="font-size:10.0pt">10:39:21.000000000 +0300<o:p></o:p></span></font></pre>
<pre><font face="Courier New" size="2"><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 face="Courier New" size="2"><span style="font-size:10.0pt">18:25:57.000000000 +0300<o:p></o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt">@@ -284,7 +284,7 @@<o:p></o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt"> if (cfg_get(tm, tm_cfg, reparse_invite)) {<o:p></o:p></span></font></pre>
<pre><font face="Courier New" size="2"><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 face="Courier New" size="2"><span style="font-size:10.0pt"> cancel = build_local_reparse(t, branch, &len, CANCEL, <o:p></o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt">CANCEL_LEN,<o:p></o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt">- &t->to<o:p></o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt">+ NULL<o:p></o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt"> #ifdef CANCEL_REASON_SUPPORT<o:p></o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt"> , reason<o:p></o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt"> #endif /* CANCEL_REASON_SUPPORT */”<o:p></o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt"><o:p> </o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt"><o:p> </o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt"><o:p> </o:p></span></font></pre>
<pre><font 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.<o:p></o:p></span></font></pre>
<pre><font face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial"><o:p> </o:p></span></font></pre>
<pre><font face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial">But a patch is not committed.<o:p></o:p></span></font></pre>
<pre><font face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial"><o:p> </o:p></span></font></pre>
<pre><b><font face="Arial" size="2"><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 face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial"><o:p> </o:p></span></font></pre>
<pre><font face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial">Thank you,<o:p></o:p></span></font></pre>
<pre><font face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial"><o:p> </o:p></span></font></pre>
<pre><font face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial">Julia<o:p></o:p></span></font></pre>
<pre><font face="Arial" size="2"><span style="font-size:11.0pt;font-family:Arial"><o:p> </o:p></span></font></pre>
<pre><font face="Courier New" size="2"><span style="font-size:10.0pt"><o:p> </o:p></span></font></pre>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:11.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</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>