<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
the avpops is missing the db connection / db_url modparam.<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/devel/avpops.html#id249134">http://www.opensips.org/html/docs/modules/devel/avpops.html#id249134</a><br>
<br>
<pre class="programlisting">modparam("avpops","db_url","mysql://user:passwd@host/database")
Best Regards
Max M.
</pre>
<br>
Am 14.06.2011 17:02, schrieb Tiberiu Breana:
<blockquote
cite="mid:BANLkTi=3AKjx5R8FPAOeGGfGJW=0s396KA@mail.gmail.com"
type="cite">Hello.<br>
<br>
I want to use some custom RADIUS authentication requests with
radius_send_auth, but it seems this can't work without sending the
user's password.<br>
I'm trying to extract user passwords from the subscriber table
using the example from the avpops manual: <br>
<br>
avp_db_query("select password from subscriber where
username='$tu'", "$avp(i:678)");<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's parameters, but I
don't know what the subscriber table's ID is. What is it? Or, how
can I set it?<br>
Is there a simpler way to obtain a user's password and put it in a
variable?<br>
<br>
<br>
Regards,<br>
Tiberiu<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>