<div dir="ltr">Also thanks to Ovidiu for the helpful suggestion. I will remember that one :)<div><br></div><div>Mark.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 25 Feb 2022 at 11:50, Mark Farmer <<a href="mailto:farmorg@gmail.com">farmorg@gmail.com</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 dir="ltr">Thanks Bogdan<div><br></div><div>It's no secret really, I was just speaking generically.</div><div>They are the MS Direct Routing domains, EG <a href="http://sip.pstnhub.microsoft.com" target="_blank">sip.pstnhub.microsoft.com</a></div><div><br></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 12:50, Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">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>
      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 cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp
  <a href="https://www.opensips.org/Training/Bootcamp" target="_blank">https://www.opensips.org/Training/Bootcamp</a></pre>
    <div>On 2/22/22 12:31 PM, Mark Farmer wrote:<br>
    </div>
    <blockquote type="cite">
      
      <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" target="_blank">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" target="_blank">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" target="_blank">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">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp
  <a href="https://www.opensips.org/Training/Bootcamp" target="_blank">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">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>
        </blockquote>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      <div dir="ltr">Mark Farmer<br>
        <a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>
    </blockquote>
    <br>
  </div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></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">farmorg@gmail.com</a></div>