<div dir="ltr">Hello, Liviu.<div><br></div><div>It seems it works well. Thank you.</div><div>Let's add it to source tree. :-)<br><div class="gmail_extra"><br clear="all"><div>--</div><div>Nick<br></div><br><div class="gmail_quote">
2014-02-20 20:47 GMT+04:00 Liviu Chircu <span dir="ltr"><<a href="mailto:liviu@opensips.org" target="_blank">liviu@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>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 cols="72">Liviu Chircu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><div><div class="h5">
On 02/19/2014 07:35 PM, Nick Altmann wrote:<br>
</div></div></div><div><div class="h5">
<blockquote 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 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>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
</div>
<div>
<div> On 19.02.2014 17:45, Nick Altmann
wrote:<br>
</div>
</div>
</div>
<div>
<div>
<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 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 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 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 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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a 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 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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a 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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a 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>