<div dir="ltr">Thanks Henning, I think it was my error because problem disapeer when I comment these lines in my config:<br><br># modparam("uri_db", "db_table", "uri")<br># modparam("uri_db", "use_uri_table", 0)<br>
<br>so now kamailio use 'subscriber' table by default, btw I'm not sure but the parameter 'db_table' should not be activated since parameter 'use_uri_table' was '0'...<br><br>Now I am testing kamailio 1.4 to use a VIEW from mya2billing DB as a subscriber database, It works in 1.3.2 version of openser using this modparam:<br>
<br>modparam("uri_db", "subscriber_table", "subscriber_v2") , where 'subscriber_v2' its the VIEW shown below:<br><br>CREATE VIEW openser.subscriber_v2 AS <br>SELECT id AS id, <br>useralias AS username, <br>
'<a href="http://192.168.12.212">192.168.12.212</a>' AS domain, <br>userpass AS password, <br>firstname AS first_name, <br>lastname AS last_name, <br>email AS email_address, <br>'2008-07-24 12:48:03' AS datetime_created, <br>
md5(concat(useralias,' : ','<a href="http://192.168.12.212">192.168.12.212</a>',' : ',userpass)) AS ha1, <br>md5(concat(useralias,'@','<a href="http://192.168.12.212">192.168.12.212</a>',' : ','<a href="http://192.168.12.212">192.168.12.212</a>',' : ',userpass)) AS ha1b, <br>
'' AS timezone, <br>useralias AS rpid from mya2billing.cc_card WHERE tariff=2;<br><br>Also Its necesary to insert a new value in 'version' table:<br>INSERT INTO version (table_name,table_version) VALUES ('subscriber_V2','6') <br>
<br>Then you can authenticate users using if(!www_authorize("", "subscriber_v2")) or if(!proxy_authorize("", "subscriber_v2")) in register and invite request routes....<br><br>In Kamailio version 1.4 the modparam "subscriber_table" was removed from uri_db module, Is it enough to specify the new table in www_authorize and proxy_authorize functions?<br>
<br>thanks<br>rafael<br><br><br><br><br><div class="gmail_quote">On Mon, Aug 11, 2008 at 4:19 PM, Henning Westerholt <span dir="ltr"><<a href="mailto:henning.westerholt@1und1.de">henning.westerholt@1und1.de</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;">On Mon, August 11, 2008 8:07 pm, Rafael Risco Gonzales-Vigil wrote:<br>
> I am trying to run new kamailio 1.4 but have this errors:<br>
><br>
> I have created new database 'kamailio' using kamdbctl and 'version' table<br>
> has this values:<br>
><br>
> table_name: subscriber<br>
> table_version: 6<br>
<br>
Hi Rafael,<br>
<br>
thanks for the report, there was an error in the uri_db version for this<br>
table in the code. I fixed it in trunk, 1.4 and 1.3 branches.<br>
<font color="#888888"><br>
Henning<br>
<br>
</font></blockquote></div><br></div>