I know that, but how can I connect to the subscriber table (the default &quot;user list&quot;)? It&#39;s not a mysql db.<br>I don&#39;t have a persistent database configured right now. Do I need to configure one if I want to use avp_db_query?<br>
<br>Thanks.<br><br><div class="gmail_quote">On 15 June 2011 13:35, Max Mühlbronner <span dir="ltr">&lt;<a href="mailto:mm@42com.com">mm@42com.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


  
    
  
  <div bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    the avpops is missing the db connection / db_url modparam.<br>
    <br>
    <a href="http://www.opensips.org/html/docs/modules/devel/avpops.html#id249134" target="_blank">http://www.opensips.org/html/docs/modules/devel/avpops.html#id249134</a><br>
    <br>
    <pre>modparam(&quot;avpops&quot;,&quot;db_url&quot;,&quot;mysql://user:passwd@host/database&quot;)



Best Regards


Max M.
</pre>
    <br>
    Am 14.06.2011 17:02, schrieb Tiberiu Breana:
    <blockquote type="cite"><div><div></div><div class="h5">Hello.<br>
      <br>
      I want to use some custom RADIUS authentication requests with
      radius_send_auth, but it seems this can&#39;t work without sending the
      user&#39;s password.<br>
      I&#39;m trying to extract user passwords from the subscriber table
      using the example from the avpops manual: <br>
      <br>
      avp_db_query(&quot;select password from subscriber where
      username=&#39;$tu&#39;&quot;, &quot;$avp(i:678)&quot;);<br>
      <br>
      But I get this error:<br>
      <br>
      ERROR:avpops:fixup_db_query_avp: no db url defined to be used by
      this function<br>
      ERROR:core:fix_actions: fixing failed (code=-6) at cfg line 308<br>
      ERROR:core:main: failed to fix configuration with err code -6<br>
      <br>
      I guess I need to add a db_url ID to the query&#39;s parameters, but I
      don&#39;t know what the subscriber table&#39;s ID is. What is it? Or, how
      can I set it?<br>
      Is there a simpler way to obtain a user&#39;s password and put it in a
      variable?<br>
      <br>
      <br>
      Regards,<br>
      Tiberiu<br>
      </div></div><pre><fieldset></fieldset>
_______________________________________________
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>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br>