<html 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=utf-8">
<meta name="Title" content="Re: [OpenSIPS-Users] Opensips 2.2.2 and top hiding">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<title>Re: [OpenSIPS-Users] Opensips 2.2.2 and top hiding</title>
<style><!--
/* Font Definitions */
@font-face
        {font-family:Arial;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Courier New";
        panose-1:2 7 3 9 2 2 5 2 4 4;}
@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;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">You said you are doing load balancing as well. Are you doing load balancing on the ACK? What module are you using (dispatcher, loadbalancer, etc.)?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Load balancing functions can change the R-URI.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p>&nbsp;</o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Calibri;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Calibri;color:black">Ben Newlin</span><span style="font-size:11.0pt;font-family:Calibri"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">&lt;users-bounces@lists.opensips.org&gt; on behalf of Denis &lt;denis7979@mail.ru&gt;<br>
<b>Reply-To: </b>OpenSIPS users mailling list &lt;users@lists.opensips.org&gt;<br>
<b>Date: </b>Tuesday, November 15, 2016 at 8:19 AM<br>
<b>To: </b>Răzvan Crainea &lt;razvan@opensips.org&gt;, OpenSIPS users mailling list &lt;users@lists.opensips.org&gt;<br>
<b>Subject: </b>Re: [OpenSIPS-Users] Opensips 2.2.2 and top hiding<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello, Razvan!<br>
<br>
No, i don`t make any modification for that variables<br>
<br>
&quot;<span style="font-size:9.0pt;font-family:&quot;Courier New&quot;"> &nbsp;if (match_dialog() || topology_hiding_match()) {<br>
<br>
&nbsp; if (!$DLG_status == NULL) {<br>
&nbsp; xlog(&quot;L_INFO&quot;, &quot;Route0:$rm was received (IPS=$si, IPD=$rd, CALLID=$ci, FROMTAG=$ft, TOTAG=$tt, AUTH=$au) and RURI = $ru/$rd&quot;);<br>
&nbsp; &nbsp; force_rport();<br>
&nbsp; &nbsp; route(1);<br>
&nbsp; &nbsp; exit;<br>
&nbsp; }<br>
<br>
}</span>&quot;<br>
<br>
The information from a syslog.<br>
<br>
&quot;Route0:ACK was received (IPS=2.2.2.2, IPD=3.3.3.3, CALLID=82158NWE4MmU0NmJiZDU2MzA4OWM1MGFiZjU1Zjg2YTA4NWM, FROMTAG=b83b533d, TOTAG=6A3BE0-1AA9, AUTH=&lt;null&gt;) and RURI = sip:3364021@3.3.3.3:5068/3.3.3.3&quot;<br>
<br>
<a href="mailto:denis7979@mail.ru"><span style="font-size:10.0pt;font-family:Arial">mailto:denis7979@mail.ru</span></a><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0" style="background:white">
<tbody>
<tr>
<td width="2" style="width:1.5pt;background:blue;padding:.75pt .75pt .75pt .75pt">
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">Hi, Denis!<br>
<br>
Are you modifying the $ru/$rd variables anyhwere in your script for that ACK? I am seeing the R-URI of the ACK going to 3.3.3.3:5068:<br>
ACK </span><a href="mailto:sip:3364021@3.3.3.3:5068"><span style="font-family:&quot;Courier New&quot;">sip:3364021@3.3.3.3:5068</span></a><span style="font-family:&quot;Courier New&quot;"> SIP/2.0.<br>
However, it should be:<br>
ACK </span><a href="mailto:sip:3364021@4.4.4.4:5060"><span style="font-family:&quot;Courier New&quot;">sip:3364021@4.4.4.4:5060</span></a><span style="font-family:&quot;Courier New&quot;"> SIP/2.0.<br>
<br>
Can you try printing the $ru variable just after the topology_hiding_match() function?<br>
<br>
Best regards,<br>
Răzvan Crainea</span><span style="font-family:PMingLiU"><br>
</span><span style="font-family:&quot;Courier New&quot;">OpenSIPS Solutions</span><span style="font-family:PMingLiU"><br>
</span><a href="http://www.opensips-solutions.com"><span style="font-family:&quot;Courier New&quot;">www.opensips-solutions.com</span></a><br>
On 11/15/2016 02:22 PM, Denis wrote:<o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td width="2" style="width:1.5pt;background:#3200FF;padding:.75pt .75pt .75pt .75pt">
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">Opensips 2.2.2 and top hiding Hello!<br>
<br>
I try to make top hiding using topology_hiding module.<br>
In attachment you can find a log of unsuccessful call.<br>
<br>
Scheme of the call<br>
<br>
SIP UA (2.2.2.2) -&gt; Opensips with top hiding (1.1.1.1) -&gt; another Opensis proxy (3.3.3.3) - &gt; PSTN GW (4.4.4.4) -&gt; PSTN.<br>
<br>
As i understand, &nbsp;the problem is that Opensips proxy cannot send ACK (on 200 OK) to PSTN GW because RURI and Route header has similar IP, namely 3.3.3.3.<br>
<br>
I am using &quot;<span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">topology_hiding(&quot;C&quot;);</span>&quot; function for top hiding.<br>
<br>
The call log was gathered from 1.1.1.1<br>
<br>
Thank you for any help.<br>
<br>
P.S. On 1.1.1.1 i also try to make load balancing.<br>
<br>
<a href="mailto:denis7979@mail.ru"><span style="font-size:10.0pt;font-family:Arial">mailto:denis7979@mail.ru</span></a>
<br>
<br>
<span style="font-family:&quot;Courier New&quot;">_______________________________________________<br>
Users mailing list<br>
</span><a href="mailto:Users@lists.opensips.org"><span style="font-family:&quot;Courier New&quot;">Users@lists.opensips.org</span></a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"><span style="font-family:&quot;Courier New&quot;">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</span></a><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>