<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Alexnader,<br>
      <br>
      the "advertised_address" is a global setting - it affects all
      listeners that you define in OpenSIPS.<br>
      Still you have the possibility to do an "advertise" per listener:<br>
          </tt><br>
    <pre class="escaped">listen = udp:127.0.0.1:5060 as 99.88.44.33:5060</pre>
    <tt><br>
      (see
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreParameters-2-4#toc37">http://www.opensips.org/Documentation/Script-CoreParameters-2-4#toc37</a>)<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>
OpenSIPS Bootcamp 2018
  <a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2018/">http://opensips.org/training/OpenSIPS_Bootcamp_2018/</a>
</pre>
    <div class="moz-cite-prefix">On 08/10/2018 06:21 AM, Alexander
      Perkins wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALLkTp3D+5B7p2Kg8MENQzorHw+o2_FnesQ6mYXKGbJ5tt9yXg@mail.gmail.com">
      <div dir="ltr">Hi All.  Currently, I am using OpenSIPs on AWS
        without issues (NAT environment).  I have it configured as
        follows (I have removed the real IP and replaced it with
        1.2.3.4):
        <div><br>
        </div>
        <div>
          <div>listen=udp:eth0:5060</div>
          <div><br>
          </div>
          <div>advertised_address="1.2.3.4"</div>
          <div>
            <span
style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">alias="1.2.3.4"</span> <br>
          </div>
          <div>advertised_port=5060</div>
          <div><br>
          </div>
          <div>What I would like to do is add multiple public IPs to
            this box (which AWS allows this).  My question is as
            follows:</div>
          <div><br>
          </div>
          <div>If I add another interface, let's say eth1, how will
            OpenSIPs know which IP to advertise?  I don't see a way of
            telling OpenSIPS- Hey, if the request comes in on eth0, then
            advertise public IP 1.2.3.4.  But, if a request comes in on
            eth1, then advertise public IP 5.6.7.8.</div>
          <div><br>
          </div>
        </div>
        <div>Any help is greatly appreciated.</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Alex</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>