Thanks Flavio.<br>All works perfectly now. :)<br><br><div class="gmail_quote">On Thu, Oct 22, 2009 at 2:35 PM, Flavio E. Goncalves <span dir="ltr"><<a href="mailto:flavio@asteriskguide.com">flavio@asteriskguide.com</a>></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;">Hi Hasitha,<br>
<br>
You need to have a table version, with the name of the table and the<br>
right versions. Check in the source code the MySQL scripts who create<br>
the databases. For each OpenSIPS table there is a record in the<br>
version table.<br>
<br>
Regards,<br>
<br>
Flavio E. Goncalves<br>
<div><div></div><div class="h5"><br>
At 11:30 AM 10/22/2009, you wrote:<br>
>Hello,<br>
><br>
> Is it possible to use a view/table from a remote database (not<br>
> from opensips db) for authenticating users?<br>
><br>
>I'm testing following scenario but cannot get it to work.<br>
>I have a separate user provisioning system which store username,<br>
>password and domain in a external mysql db. I want opensips to query<br>
>user credentials from external database when authenticating users.<br>
><br>
>I created a view named "subscriber" in the external DB which<br>
>contains following fields;<br>
> - username<br>
> - domain<br>
> - ha1<br>
> - ha1b<br>
><br>
>In the opensips.conf file I've changed auth_db params as below;<br>
><br>
>modparam("auth_db", "calculate_ha1", yes)<br>
>modparam("auth_db", "password_column", "password")<br>
>modparam("auth_db", "db_url","mysql://dbuser:dbpassword@dbserveraddress/mydb")<br>
>modparam("auth_db", "load_credentials", "")<br>
><br>
><br>
>When I try to start OpenSIPS it attempts to query from a table<br>
>called "version" and fail to start.<br>
><br>
>Oct 22 13:54:48 opensips /sbin/opensips[18071]:<br>
>ERROR:db_mysql:db_mysql_submit_query: driver error: Table<br>
>'mydb.version' doesn't exist.<br>
><br>
>Any thoughts? Suggestions?<br>
><br>
>Thanks in advance.<br>
><br>
><br>
>Hasitha<br>
><br>
><br>
><br>
><br>
</div></div>>_______________________________________________<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>
<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>
</blockquote></div><br>