<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Mark,<br>
      <br>
      What kind of matching you want to do between $fU and the dr
      prefixes ? You want to do the same as what drouting() does with
      $rU ?<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="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>

</pre>
    <div class="moz-cite-prefix">On 4/16/20 6:14 PM, Mark Farmer wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOvQDesuvMxb14zE0pogw9+-9pUs+M8qPF-xfUeVTG9AQTncWw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi everyone
        <div><br>
        </div>
        <div>I am looking for a way to compare $fU in INVITE to the
          matching drouting() prefix of another group and retrieve the
          rule_attrs from that rule.</div>
        <div><br>
        </div>
        <div>At the moment I am thinking I'll have to run a custom DB
          query so I have 2 questions:</div>
        <div><br>
        </div>
        <div>1. Is there a better way to do this?</div>
        <div>2. If not, what is the best way to run custom DB queries?</div>
        <div><br>
        </div>
        <div>I have been reading through the drouting() documentation
          but that hasn't helped.</div>
        <div><br>
        </div>
        <div>OpenSIPS 2.4.7</div>
        <div><br>
        </div>
        <div>Many thanks!</div>
        <div>Mark.</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>