<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Royee,<br>
<br>
OpenSIPS will add the in the 2 RR headers the inbound and outbound
listening interfaces (if not override by an advertise address). So
can you share the listening sockets you have (priv versus public),
the advertise value and what you get into RR headers ?<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 12/18/2017 12:22 PM, Royee Tichauer
via Users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFrVV=zqG1LhwBGJb+umLivzwn8o5=a_Cvj6C1FFuekbkJHBeg@mail.gmail.com">
<div dir="ltr">I think I understand now the concept now and this
is actually how it should work.
<div><br>
</div>
<div>I have another problem though. I am doing protocol
conversion on the proxy side (tls->tcp) and record_route()
adds a double rr header. The issue is that one of them
contains the private IP instead of the public IP. When the
device receives this it fails to connect back to this address.
How can I set both of the rr headers to the public IP? I am
using: advertised address, global 'listen' for ports: 5060,
10000, 10002 (tls).</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Royee</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Sun, Dec 17, 2017 at 1:41 PM Royee Tichauer
<<a href="mailto:royee.tichauer@vonage.com"
moz-do-not-send="true">royee.tichauer@vonage.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I am using opensips 2.1. I have an opensips server
acting as a proxy using the dispatcher module. The
destinations in the dispatcher table are TCP destinations
with a destination port of 10000. From sniffing the
network I see that opensips picks a random local port to
send TCP messages from. </div>
<div><br>
</div>
<div>If I use record_route() from my configuration then the
rr header thats added to the SIP message contains my proxy
IP and port 10000 instead of the actual port used. Of
course when I receive following SIP messages I will
receive them through 10000 and reject them as not coming
in through the right port.</div>
<div><br>
</div>
<div>What am I missing here?</div>
</div>
<div dir="ltr">
<div><br>
</div>
<div>Royee</div>
</div>
</blockquote>
</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>