<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi Mark,<br>
      <br>
      You say the DNS is publishing only one IP for the domain, but one
      may change ? If you want, you can PM me the actual domain to see
      how the DNS records looks like.<br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/Training/Bootcamp">https://www.opensips.org/Training/Bootcamp</a></pre>
    <div class="moz-cite-prefix">On 2/22/22 12:31 PM, Mark Farmer wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOvQDet1TC=0c1sq9aan804nbcF50+UJzuVy8qh_+c8pXsGrzQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi Bogdan
        <div><br>
        </div>
        <div>The GW's have 2 CNAME records which I have no control over.
          DR has entries like <a
            href="http://subdomain.example.com:5061"
            moz-do-not-send="true">subdomain.example.com:5061</a></div>
        <div>I suspect the issue arises when the CNAMES swap around
          resulting in a mismatch.</div>
        <div><br>
        </div>
        <div>Currently I am using this to identify the source of the
          message which is probably not the best in terms of security.</div>
        <div><br>
        </div>
        <div>$avp(fd) = "<a href="http://subdomain.example.com"
            moz-do-not-send="true">subdomain.example.com</a>";<br>
        </div>
        <div>if($(ct.fields(uri){s.index, $avp(fd)}) != NULL)<br>
        </div>
        <div><br>
        </div>
        <div>Perhaps there is a better way?</div>
        <div><br>
        </div>
        <div>Best regards</div>
        <div>Mark.</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, 22 Feb 2022 at 08:56,
          Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org"
            moz-do-not-send="true">bogdan@opensips.org</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
          <div> <font face="monospace">Hi Mark,<br>
              <br>
              If a gw is defined via FQDN, that will by DNS resolved
              (NAPTR, SRV, A records) when DB data is (re)loaded by DR
              module, and used later for such checks. All found IPs
              (from DNS) will be stored on the GW.<br>
              <br>
              How do you specify the GW address in DB and what kind of
              DNS records do you have for it ?<br>
              <br>
              Best regards,<br>
            </font>
            <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp
  <a href="https://www.opensips.org/Training/Bootcamp" target="_blank" moz-do-not-send="true">https://www.opensips.org/Training/Bootcamp</a></pre>
            <div>On 2/18/22 6:04 PM, Mark Farmer wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Hi everyone<br>
                <div><br>
                </div>
                <div>I am using is_from_gw() to match against a group of
                  gateways specified by DNS names which resolve to
                  multiple IP addresses but it seems to be failing to
                  match.</div>
                <div><br>
                </div>
                <div>Is this supported functionality or do I need to do
                  something else in this case?</div>
                <div><br>
                </div>
                <div>Thanks and regards</div>
                <div>Mark.</div>
                <div><br>
                </div>
              </div>
              <br>
              <fieldset></fieldset>
              <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      <div dir="ltr" class="gmail_signature">Mark Farmer<br>
        <a href="mailto:farmorg@gmail.com" target="_blank"
          moz-do-not-send="true">farmorg@gmail.com</a></div>
    </blockquote>
    <br>
  </body>
</html>