<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.E-mailStijl19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.E-mailStijl20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.E-mailStijl21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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]-->
</head>
<body lang="NL" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">I’m building a proxy between two public endpoints, so no nat involved luckily.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I’ve got everything to work except for the CANCEL. It breaks the same if I start the call from the other endpoint.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Attached a visual of the traffic flow. Not attached, at link here:
<a href="https://www.dropbox.com/s/m45wwjlt4cmhy7k/Captuasdre.JPG?dl=0">https://www.dropbox.com/s/m45wwjlt4cmhy7k/Captuasdre.JPG?dl=0</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Now I would like to fix the final 487 ACK bouncing, and it seems to me that opensips should just accept the ACK from the 487 and end the transaction.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">The script is based on the standard one after install with some routing logic. So the ACK is handled in the sequential path with this comment:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"># non loose-route, but stateful ACK; must be an ACK after
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"># a 487 or e.g. 404 from upstream server<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I also tried to fix/workaround it with the topology_hiding module, but as soon as the ACK (packet 12 in the diagram) is sent back opensips crashes with
<br>
CRITICAL:core:free_lump: called on a not free-able lump:0x7f9ba2cc9d68 flags=2<br>
and no 487 is being sent to the left endpoint.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">version: opensips 2.3.0-beta (x86_64/linux)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">git revision: 2f688b5<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-GB">Crash dump with dbg on for the topo hiding scenario available on request, rather not share it on the list
</span><span lang="EN-GB" style="font-family:Wingdings">J</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Did I hit an opensips bug or am I missing something?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Regards,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black;mso-fareast-language:NL">Met vriendelijke groet,<br>
<br>
</span><b><span style="color:#84C41B;mso-fareast-language:NL">Rik Broers</span></b><span style="color:black;mso-fareast-language:NL"><br>
</span><span style="font-size:9.0pt;color:#212735;mso-fareast-language:NL">Voice Engineer</span><span style="color:black;mso-fareast-language:NL"><br>
<br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:NL"><a href="mailto:rbroers@motto.nl"><span style="font-size:9.0pt;font-family:"Calibri",sans-serif;color:blue">rbroers@motto.nl</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>