<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>the creating of the dns container was relying on using the $dns()
      variable somewhere in the config (could be after dns_query()),
      because the purpose of dns_query() was to fill the variable.</p>
    <p>I pushed a patch to create the container even if the variable is
      not used.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 06.05.22 12:19, David Villasmil
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFGRPVqN6e2stMKbRV5MOdS_42Abhfp8JPiBGaN=NQG5O7Rx3Q@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello guys,
        <div><br>
        </div>
        <div>simply using the var right before the function made the
          error go away:</div>
        <div><font face="monospace"><br>
          </font></div>
        <div><font face="monospace">xlog("L_DBG", "--- SCRIPT: DNS
            <$dns(xyz=>count)>\n");<br>
            <br>
            if(dns_query("$du", "xyz"))<br>
          </font></div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Thanks everyone!</div>
        <div><br clear="all">
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>Regards,</div>
                <div><br>
                </div>
                David Villasmil
                <div>email: <a
                    href="mailto:david.villasmil.work@gmail.com"
                    target="_blank" moz-do-not-send="true"
                    class="moz-txt-link-freetext">david.villasmil.work@gmail.com</a></div>
                <div>phone: +34669448337</div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, May 6, 2022 at 10:58
          AM David Villasmil <<a
            href="mailto:david.villasmil.work@gmail.com"
            moz-do-not-send="true" class="moz-txt-link-freetext">david.villasmil.work@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">Hello guys,
            <div><br>
            </div>
            <div>I'm trying to use:</div>
            <div><br>
            </div>
            <div><font face="monospace">    if(dns_query("$du", "xyz"))</font><br>
            </div>
            <div><br>
            </div>
            <div>And all I get is </div>
            <div><br>
            </div>
            <div><font face="monospace">dns_update_pv(): container not
                found: xyz</font></div>
            <div><br>
            </div>
            <div>Any ideas? I'm not really sure what that means. I know
              there's supposed to be a $dns(xyz) but it looks like it's
              not there? I'm using 5.0 BTW.</div>
            <div><br>
            </div>
            <div>
              <div>
                <div dir="ltr">
                  <div dir="ltr">
                    <div>Thanks all & Regards,</div>
                    <div><br>
                    </div>
                    David Villasmil
                    <div>email: <a
                        href="mailto:david.villasmil.work@gmail.com"
                        target="_blank" moz-do-not-send="true"
                        class="moz-txt-link-freetext">david.villasmil.work@gmail.com</a></div>
                    <div>phone: +34669448337</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
  * <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  </body>
</html>