<html><head><title>Re: [OpenSIPS-Users] Opensips 2.2.2 and top hiding</title>
</head>
<body>
<span style=" font-family:'Times New Roman'; font-size: 12pt;">In attachment.<br>
<br>
</span><a style=" font-family:'arial'; font-size: 10pt;" href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a><br>
<br>
<table bgcolor="#ffffff">
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'courier new'; font-size: 12pt;">Can you put on pastebin the debug logs for the ACK?<br>
<br>
Best regards,<br>
Răzvan Crainea<br>
OpenSIPS Solutions<br>
</span><a style=" font-family:'courier new'; font-size: 12pt;" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a><br>
<span style=" font-family:'times new roman'; font-size: 12pt;">On 11/15/2016 03:44 PM, Denis wrote:<br>
</span><table>
<tr>
<td width=2 bgcolor= #3200ff><br>
</td>
<td><span style=" font-family:'times new roman'; font-size: 12pt;">Re: [OpenSIPS-Users] Opensips 2.2.2 and top hiding Hello Ben.<br>
<br>
I am using loadbalacer module and using only for initial INVITE.<br>
<br>
</span><a style=" font-family:'arial'; font-size: 10pt;" href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a><br>
<br>
<table bgcolor="#ffffff">
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'calibri'; font-size: 11pt;">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.)?<br>
<br>
Load balancing functions can change the R-URI.<br>
<br>
<br>
Ben Newlin<br>
<br>
<span style=" font-size: 12pt;"><b>From: </b></span></span><a style=" font-family:'calibri'; font-size: 12pt;" href="mailto:users-bounces@lists.opensips.org"><users-bounces@lists.opensips.org></a><span style=" font-family:'calibri'; font-size: 12pt;"> on behalf of Denis </span><a style=" font-family:'calibri'; font-size: 12pt;" href="mailto:denis7979@mail.ru"><denis7979@mail.ru></a><br>
<span style=" font-family:'calibri'; font-size: 12pt;"><b>Reply-To: </b>OpenSIPS users mailling list </span><a style=" font-family:'calibri'; font-size: 12pt;" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
<span style=" font-family:'calibri'; font-size: 12pt;"><b>Date: </b>Tuesday, November 15, 2016 at 8:19 AM<br>
<b>To: </b>Răzvan Crainea </span><a style=" font-family:'calibri'; font-size: 12pt;" href="mailto:razvan@opensips.org"><razvan@opensips.org></a><span style=" font-family:'calibri'; font-size: 12pt;">, OpenSIPS users mailling list </span><a style=" font-family:'calibri'; font-size: 12pt;" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
<span style=" font-family:'calibri'; font-size: 12pt;"><b>Subject: </b>Re: [OpenSIPS-Users] Opensips 2.2.2 and top hiding<br>
<br>
<span style=" font-family:'times new roman';">Hello, Razvan!<br>
<br>
No, i don`t make any modification for that variables<br>
<br>
"<span style=" font-size: 9pt;"> if (match_dialog() || topology_hiding_match()) {<br>
<br>
if (!$DLG_status == NULL) {<br>
xlog("L_INFO", "Route0:$rm was received (IPS=$si, IPD=$rd, CALLID=$ci, FROMTAG=$ft, TOTAG=$tt, AUTH=$au) and RURI = $ru/$rd");<br>
force_rport();<br>
route(1);<br>
exit;<br>
}<br>
<br>
}<span style=" font-size: 12pt;">"<br>
<br>
The information from a syslog.<br>
<br>
"Route0:ACK was received (IPS=2.2.2.2, IPD=3.3.3.3, CALLID=82158NWE4MmU0NmJiZDU2MzA4OWM1MGFiZjU1Zjg2YTA4NWM, FROMTAG=b83b533d, TOTAG=6A3BE0-1AA9, AUTH=<null>) and RURI = </span></span></span></span><a style=" font-family:'times new roman'; font-size: 12pt;" href="mailto:sip:3364021@3.3.3.3:5068/3.3.3.3">sip:3364021@3.3.3.3:5068/3.3.3.3</a><span style=" font-family:'times new roman'; font-size: 12pt;">"<br>
<br>
</span><a style=" font-family:'arial'; font-size: 10pt;" href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a><br>
<table bgcolor="#ffffff">
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'times new roman'; font-size: 12pt;">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 style=" font-family:'times new roman'; font-size: 12pt;" href="mailto:sip:3364021@3.3.3.3:5068">sip:3364021@3.3.3.3:5068</a><span style=" font-family:'times new roman'; font-size: 12pt;"> SIP/2.0.<br>
However, it should be:<br>
ACK </span><a style=" font-family:'times new roman'; font-size: 12pt;" href="mailto:sip:3364021@4.4.4.4:5060">sip:3364021@4.4.4.4:5060</a><span style=" font-family:'times new roman'; font-size: 12pt;"> 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<br>
OpenSIPS Solutions<br>
</span><a style=" font-family:'times new roman'; font-size: 12pt;" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a><br>
<span style=" font-family:'times new roman'; font-size: 12pt;">On 11/15/2016 02:22 PM, Denis wrote:<br>
</span><table>
<tr>
<td width=2 bgcolor= #3200ff><br>
</td>
<td><span style=" font-family:'times new roman'; font-size: 12pt;">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) -> Opensips with top hiding (1.1.1.1) -> another Opensis proxy (3.3.3.3) - > PSTN GW (4.4.4.4) -> PSTN.<br>
<br>
As i understand, 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 "<span style=" font-size: 9pt;">topology_hiding("C");<span style=" font-size: 12pt;">" 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>
</span></span></span><a style=" font-family:'arial'; font-size: 10pt;" href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a> <br>
<br>
<span style=" font-family:'times new roman'; font-size: 12pt;">_______________________________________________<br>
Users mailing list<br>
</span><a style=" font-family:'times new roman'; font-size: 12pt;" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a style=" font-family:'times new roman'; font-size: 12pt;" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<br>
<span style=" font-family:'courier new'; font-size: 12pt;">_______________________________________________<br>
Users mailing list<br>
</span><a style=" font-family:'courier new'; font-size: 12pt;" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<span style=" font-family:'courier new'; font-size: 12pt;">
</span><a style=" font-family:'courier new'; font-size: 12pt;" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<span style=" font-family:'courier new'; font-size: 12pt;">
</td>
</tr>
</table>
</td>
</tr>
</table>
</body></html>