<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hi, Stas!<br>
        <br>
        Currently the pseudo variables are not allowed to be used in the
        modules' configuration. You can only use plain values.<br>
        <br>
        Best regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Razvan Crainea
OpenSIPS Core Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
</pre>
      On 03/15/2013 03:22 PM, Stas Kobzar wrote:<br>
    </div>
    <blockquote
cite="mid:CAMYcjop4i8+vB264ZQaYKnjLcb+D4etBd9qCO+A-1r32iPfB3A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello List,
        <div><br>
        </div>
        <div style="">Is there a way to use shared variables in modules'
          configuration?</div>
        <div style="">For example:</div>
        <div style=""><br>
        </div>
        <div style="">modparam("cfgutils", "shvset",
          "DBURI=s:mysql//user:pass@host/accdb")<br>
        </div>
        <div style="">modparam("acc", "db_url", "$shv(DBURI)")<br>
        </div>
        <div style=""><br>
        </div>
        <div style="">does not work for me:</div>
        <div style="">ERROR:core:db_check_api: module db_$shv(DBURI)
          does not export db_use_table function<br>
        </div>
        <div style=""><br>
        </div>
        <div style="">Same error happens when I am trying to use varset:</div>
        <div style="">ERROR:core:db_check_api: module db_$var(dburi)
          does not export db_use_table function<br>
        </div>
        <div style=""><br>
        </div>
        <div style="">
          My version 1.8 rev: 9914</div>
        <div style=""><br>
        </div>
        <div style="">Thank you,</div>
        <div style="">Stas</div>
        <div style=""><br>
        </div>
        <div style=""><br>
        </div>
        <div style=""><br>
        </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>