<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Hamid,<br>
<br>
I guess both A and B are on the public internet communicating with
your opensips via the elastic IP, right ? and your opensips is
listening only on the private IP in EC2 ? do you use advertise ?<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 23.02.2016 07:33, Hamid Hashmi
wrote:<br>
</div>
<blockquote cite="mid:BLU182-W936A0E451F799D9C233EDCE0A40@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">
<div style="color: rgb(38, 114, 236);">I am using opensips as an
edge proxy on Amazon EC2 (server behind NAT) and it works fine
if It only works on UDP or TCP. but if I need to translate
from TCP -> UDP, ACK does not reach proxy server due to
private IP in record-route. </div>
<div style="color: rgb(38, 114, 236);"><br>
</div>
<div style="color: rgb(38, 114, 236);">EdgeProxy -> B# </div>
<div style="color: rgb(38, 114, 236);"><br>
</div>
<div style="color: rgb(38, 114, 236);">
<pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; font-stretch: normal; line-height: 1.45; padding: 16px; border-radius: 3px; word-wrap: normal; color: rgb(51, 51, 51); margin-top: 0px !important; margin-bottom: 0px !important; background-color: rgb(247, 247, 247);"><code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; padding: 0px; margin: 0px; border-radius: 3px; word-break: normal; border: 0px; display: inline; max-width: initial; overflow: initial; line-height: inherit; word-wrap: normal; background: transparent;">INVITE <a class="moz-txt-link-abbreviated" href="mailto:sip:923003000200@182.185.200.42:46488;transport=tcp;line=fd2af176e9c88c3">sip:923003000200@182.185.200.42:46488;transport=tcp;line=fd2af176e9c88c3</a> SIP/2.0
Record-Route: <sip:52.76.50.195:6080;transport=tcp;r2=on;lr;ftag=ae2b3a03>
Record-Route: <sip:192.168.26.180:6080;r2=on;lr;ftag=ae2b3a03>
Record-Route: <a class="moz-txt-link-rfc2396E" href="mailto:sip:+923003000200@192.168.26.181:8000;lr;ftag=ae2b3a03;did=077.9923f675;nat=yes"><sip:+923003000200@192.168.26.181:8000;lr;ftag=ae2b3a03;did=077.9923f675;nat=yes></a>
<b>Record-Route: <sip:52.76.50.195:6080;r2=on;lr;ftag=ae2b3a03;EdgeProxy=true>
Record-Route: <sip:192.168.26.180:6080;transport=tcp;r2=on;lr;ftag=ae2b3a03;EdgeProxy=true></b>
Via: SIP/2.0/TCP 52.76.50.195:6080;branch=z9hG4bK4a7b.55d0e535.0
Via: SIP/2.0/UDP 192.168.26.181:8000;branch=z9hG4bK4a7b.0b4f27b4.0
Via: SIP/2.0/UDP 52.76.50.195:6080;rport=6080;received=192.168.26.180;branch=z9hG4bK4a7b.45d0e535.0;i=2
Via: SIP/2.0/TCP 103.255.5.24:47590;received=103.255.5.24;branch=z9hG4bK-524287-1---74668ff8d4027b7c;rport=47590
Max-Forwards: 67
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:923007777777@103.255.5.24:47590;transport=TCP"><sip:923007777777@103.255.5.24:47590;transport=TCP></a>
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:+923003000200@52.76.50.195:6080;transport=TCP"><sip:+923003000200@52.76.50.195:6080;transport=TCP></a>
From: "+923007777777"<a class="moz-txt-link-rfc2396E" href="mailto:sip:+923007777777@52.76.50.195"><sip:+923007777777@52.76.50.195></a>;tag=ae2b3a03</code></pre>
</div>
<div style="color: rgb(38, 114, 236);"><br>
</div>
<div style="color: rgb(38, 114, 236);">EdgeProxy -> A#</div>
<div style="color: rgb(38, 114, 236);"><br>
</div>
<div style="color: rgb(38, 114, 236);">
<pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; font-stretch: normal; line-height: 1.45; padding: 16px; border-radius: 3px; word-wrap: normal; color: rgb(51, 51, 51); margin-top: 0px !important; margin-bottom: 0px !important; background-color: rgb(247, 247, 247);"><code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; padding: 0px; margin: 0px; border-radius: 3px; word-break: normal; border: 0px; display: inline; max-width: initial; overflow: initial; line-height: inherit; word-wrap: normal; background: transparent;">SIP/2.0 200 OK
Via: SIP/2.0/TCP 192.168.10.13:6060;received=182.185.200.42;rport=47103;branch=z9hG4bK801489929
Record-Route: <sip:52.76.50.195:6080;transport=tcp;r2=on;lr;ftag=1252633513>
Record-Route: <sip:192.168.26.180:6080;r2=on;lr;ftag=1252633513>
Record-Route: <a class="moz-txt-link-rfc2396E" href="mailto:sip:+923007777777@192.168.26.181:8000;lr;ftag=1252633513;did=755.1859af64;nat=yes"><sip:+923007777777@192.168.26.181:8000;lr;ftag=1252633513;did=755.1859af64;nat=yes></a>
<b>Record-Route: <sip:52.76.50.195:6080;r2=on;lr;ftag=1252633513;EdgeProxy=true>
Record-Route: <sip:192.168.26.180:6080;transport=tcp;r2=on;lr;ftag=1252633513;EdgeProxy=true></b>
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:923007777777@103.255.5.24:48469;transport=TCP"><sip:923007777777@103.255.5.24:48469;transport=TCP></a>
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:+923007777777@52.76.50.195:6080"><sip:+923007777777@52.76.50.195:6080></a>;tag=12b65b6d
From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:923003000200@52.76.50.195:6080"><sip:923003000200@52.76.50.195:6080></a>;tag=1252633513</code></pre>
</div>
<div style="color: rgb(38, 114, 236);"><br>
</div>
<div style="color: rgb(38, 114, 236);">A# -> EdgeProxy</div>
<div style="color: rgb(38, 114, 236);"><br>
</div>
<div style="color: rgb(38, 114, 236);">
<pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; font-stretch: normal; line-height: 1.45; padding: 16px; border-radius: 3px; word-wrap: normal; color: rgb(51, 51, 51); margin-top: 0px !important; margin-bottom: 0px !important; background-color: rgb(247, 247, 247);"><code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; padding: 0px; margin: 0px; border-radius: 3px; word-break: normal; border: 0px; display: inline; max-width: initial; overflow: initial; line-height: inherit; word-wrap: normal; background: transparent;">ACK <a class="moz-txt-link-abbreviated" href="mailto:sip:923007777777@103.255.5.24:48469;transport=TCP">sip:923007777777@103.255.5.24:48469;transport=TCP</a> SIP/2.0
Via: SIP/2.0/TCP 192.168.10.13:6060;rport;branch=z9hG4bK184821964
<b>Route: <sip:192.168.26.180:6080;transport=tcp;r2=on;lr;ftag=1252633513;EdgeProxy=true>
Route: <sip:52.76.50.195:6080;r2=on;lr;ftag=1252633513;EdgeProxy=true></b>
Route: <a class="moz-txt-link-rfc2396E" href="mailto:sip:+923007777777@192.168.26.181:8000;lr;ftag=1252633513;did=755.1859af64;nat=yes"><sip:+923007777777@192.168.26.181:8000;lr;ftag=1252633513;did=755.1859af64;nat=yes></a>
Route: <sip:192.168.26.180:6080;r2=on;lr;ftag=1252633513>
Route: <sip:52.76.50.195:6080;transport=tcp;r2=on;lr;ftag=1252633513>
From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:923003000200@52.76.50.195:6080"><sip:923003000200@52.76.50.195:6080></a>;tag=1252633513
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:+923007777777@52.76.50.195:6080"><sip:+923007777777@52.76.50.195:6080></a>;tag=12b65b6d</code></pre>
</div>
<div style="color: rgb(38, 114, 236);"><br>
</div>
<div>
<div style="color: rgb(38, 114, 236);">Client send ACK to
Private IP of Edge proxy. While it should send it to its
Public IP.</div>
<div style="color: rgb(38, 114, 236);"><br>
</div>
<div><font color="#ac193d">opensips inserts routes inversely
incase of protocol translation. It should insert Double
route with private IP first and public IP afterwards
INSTEAD of public IP first for OUTBOUND INVITEs.</font></div>
</div>
<br>
<b><font face="Times New Roman" color="#5133ab" size="3"><i>Hamid
R. Hashmi</i></font></b>
<div><font size="2">Software Engineer - VoIP</font></div>
<div><font style="font-size:10pt;" color="#008a17" size="2">Vopium
A/S</font></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>