<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello Nick,<br>
<br>
Could you test out the attached patch for the advertised
interfaces? Example of module configuration:<br>
<br>
modparam("stun", "primary_ip", "192.168.2.133 / 46.78.50.64")<br>
modparam("stun", "primary_port", "5060 / 5061")<br>
modparam("stun", "alternate_ip", "192.168.2.134 / 50.64.46.78")<br>
modparam("stun", "alternate_port", "6001 / 6003")<br>
<br>
Best regards,<br>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 02/19/2014 07:35 PM, Nick Altmann wrote:<br>
</div>
<blockquote
cite="mid:CAJOe1EP2nz5ZmPsNHv=4CodGeGqgH3JHyoXWiVMhr6cL0oks+w@mail.gmail.com"
type="cite">
<div dir="ltr">Thank you. This code needed to run STUN on always
NATed servers like Amazon cloud.<br>
<div class="gmail_extra"><br clear="all">
<div>--<br>
Nick</div>
<br>
<br>
<div class="gmail_quote">2014-02-19 21:32 GMT+04:00
Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank">bogdan@opensips.org</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div><tt>Hi,<br>
<br>
I identify the code that need to be changed - it
should be a lot of work to add an "advertised" value
for the configured IPs and ports. It should make it
in the new release.<br>
<br>
Regards, <br>
</tt>
<div class="">
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
</div>
<div>
<div class="h5"> On 19.02.2014 17:45, Nick Altmann
wrote:<br>
</div>
</div>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div dir="ltr">Yes, it is!
<div class="gmail_extra"><br clear="all">
<div>--<br>
Nick</div>
<br>
<br>
<div class="gmail_quote">2014-02-19 17:19
GMT+04:00 Bogdan-Andrei Iancu <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:bogdan@opensips.org"
target="_blank">bogdan@opensips.org</a>></span>:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div><tt>Hi,<br>
<br>
Nick, you want something like an
"advertised" but for the STUN stuff
?<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div> On 19.02.2014 14:25, Nick
Altmann wrote:<br>
</div>
</div>
</div>
<div>
<div>
<blockquote type="cite">
<div dir="ltr">I'm about STUN
only. Its required two external
IPs.
<div>I'm not about routing.<br>
<div class="gmail_extra"><br
clear="all">
<div>--<br>
Nick</div>
<br>
<br>
<div class="gmail_quote">2014-02-19
16:14 GMT+04:00 Ali Pey <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>></span>:<br>
<blockquote
class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div dir="ltr">Hi Nick,
<div><br>
</div>
<div>I don't think
such a thing is
possible in
opensips. There can
only be one
advertised_address
as far as I know. I
think you need to do
your own message
manipulation in your
route script based
on the route it's
going to.</div>
<div><br>
</div>
<div>I'm interested in
this scenario as
well and look
forward to more
replies from more
knowledgeable
people. </div>
<div><br>
</div>
<div>Please post
updates when you
find a solution.<br>
<div
class="gmail_extra">
<br>
</div>
<div
class="gmail_extra"><br>
</div>
<div
class="gmail_extra">Regards,</div>
<div
class="gmail_extra">Ali
Pey</div>
<div
class="gmail_extra"><br>
<br>
<div
class="gmail_quote">
<div>
<div>On Wed,
Feb 19, 2014
at 5:47 AM,
Nick Altmann <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:nick.altmann@gmail.com"
target="_blank">nick.altmann@gmail.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote
class="gmail_quote"
style="margin:0
0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div>
<div>
<div dir="ltr">Hi!
<div><br>
</div>
<div>How to
correctly
configure STUN
module if we
have two
interfaces
with internal
addresses
where NATed
two external
IPs? (ports
are the same)</div>
<div>I mean
something
like advertised_address
option.</div>
<div><br
clear="all">
<div>--<br>
Nick</div>
</div>
</div>
<br>
</div>
</div>
_______________________________________________<br>
Users mailing
list<br>
<a
moz-do-not-send="true"
href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a
moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<img
moz-do-not-send="true"
src="https://contactmonkey.com/api/v1/tracker?cm_session=85523060-44ef-436e-aa6b-ee8ef5302bd0&cm_type=open&cm_user_email=alipey@gmail.com"
height="1px"
width="1px"></div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a
moz-do-not-send="true"
href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a
moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</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>