<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(&quot;uri_db&quot;, &quot;db_table&quot;, &quot;uri&quot;)<br># modparam(&quot;uri_db&quot;, &quot;use_uri_table&quot;, 0)<br>
<br>so now kamailio use &#39;subscriber&#39; table by default, btw I&#39;m not sure but the parameter &#39;db_table&#39; should not be activated since parameter &#39;use_uri_table&#39; was &#39;0&#39;...<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(&quot;uri_db&quot;, &quot;subscriber_table&quot;, &quot;subscriber_v2&quot;) ,&nbsp; where &#39;subscriber_v2&#39; its the VIEW shown below:<br><br>CREATE VIEW openser.subscriber_v2 AS <br>SELECT id AS id, <br>useralias AS username, <br>
&#39;<a href="http://192.168.12.212">192.168.12.212</a>&#39; AS domain, <br>userpass AS password, <br>firstname AS first_name, <br>lastname AS last_name, <br>email AS email_address, <br>&#39;2008-07-24 12:48:03&#39; AS datetime_created, <br>
md5(concat(useralias,&#39; : &#39;,&#39;<a href="http://192.168.12.212">192.168.12.212</a>&#39;,&#39; : &#39;,userpass)) AS ha1, <br>md5(concat(useralias,&#39;@&#39;,&#39;<a href="http://192.168.12.212">192.168.12.212</a>&#39;,&#39; : &#39;,&#39;<a href="http://192.168.12.212">192.168.12.212</a>&#39;,&#39; : &#39;,userpass)) AS ha1b, <br>
&#39;&#39; AS timezone, <br>useralias AS rpid from mya2billing.cc_card WHERE tariff=2;<br><br>Also Its necesary to insert a new value in &#39;version&#39; table:<br>INSERT INTO version (table_name,table_version) VALUES (&#39;subscriber_V2&#39;,&#39;6&#39;)&nbsp; <br>
<br>Then you can authenticate users using if(!www_authorize(&quot;&quot;, &quot;subscriber_v2&quot;)) or&nbsp; if(!proxy_authorize(&quot;&quot;, &quot;subscriber_v2&quot;)) in register and invite request routes....<br><br>In Kamailio version 1.4 the modparam &quot;subscriber_table&quot; 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">&lt;<a href="mailto:henning.westerholt@1und1.de">henning.westerholt@1und1.de</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;">On Mon, August 11, 2008 8:07 pm, Rafael Risco Gonzales-Vigil wrote:<br>
&gt; I am trying to run new kamailio 1.4 but have this errors:<br>
&gt;<br>
&gt; I have created new database &#39;kamailio&#39; using kamdbctl and &#39;version&#39; table<br>
&gt; has this values:<br>
&gt;<br>
&gt; table_name: subscriber<br>
&gt; 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>