<div dir="ltr">Hi Henning<br>Thanks for your answers, you are right and I was confusing the module names, my brain it will break at any time :-)...<br><br>I am using check_to(), check_from() and does_uri_exist() functions from uri_db module so I have to define those parameters to specify the&nbsp; other subscriber table (mysql view &#39;subscriber_v2&#39;):<br>
<br>modparam(&quot;uri_db&quot;, &quot;db_table&quot;, &quot;subscriber_v2&quot;)<br>modparam(&quot;uri_db&quot;, &quot;use_uri_table&quot;, 0)&nbsp;&nbsp; ;;; specify &#39;1&#39; just if the "uri" table should be used.<br><br>now it works, I will put kamailio 1.4 in production after doing and pass some tests, thank you very much.<br>
<br>rafael<br><br><br><div class="gmail_quote">On Tue, Aug 12, 2008 at 4:03 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;">
<div class="Ih2E3d">On Tue, August 12, 2008 5:13 pm, Rafael Risco Gonzales-Vigil wrote:<br>
&gt; Thanks Henning, I think it was my error because problem disapeer when I<br>
&gt; comment these lines in my config:<br>
&gt;<br>
&gt; # modparam(&quot;uri_db&quot;, &quot;db_table&quot;, &quot;uri&quot;)<br>
&gt; # modparam(&quot;uri_db&quot;, &quot;use_uri_table&quot;, 0)<br>
&gt;<br>
&gt; so now kamailio use &#39;subscriber&#39; table by default, btw I&#39;m not sure but<br>
&gt; the parameter &#39;db_table&#39; should not be activated since parameter<br>
&gt; &#39;use_uri_table&#39; was &#39;0&#39;...<br>
<br>
</div>Hi Rafael,<br>
<br>
do you refer with &quot;should not activated&quot; to the config file, or the module<br>
code? The default value is subscriber, this fits to the use_uri_table<br>
default in my opinion.<br>
<div class="Ih2E3d"><br>
&gt; Now I am testing kamailio 1.4 to use a VIEW from mya2billing DB as a<br>
&gt; subscriber database, It works in 1.3.2 version of openser using this<br>
&gt; modparam:<br>
&gt;<br>
&gt; modparam(&quot;uri_db&quot;, &quot;subscriber_table&quot;, &quot;subscriber_v2&quot;) , &nbsp;where<br>
&gt; &#39;subscriber_v2&#39; its the VIEW shown below:<br>
&gt;<br>
&gt; CREATE VIEW openser.subscriber_v2 AS<br>
</div>&gt; [..]<br>
<div class="Ih2E3d">&gt;<br>
&gt; Then you can authenticate users using if(!www_authorize(&quot;&quot;,<br>
&gt; &quot;subscriber_v2&quot;)) or &nbsp;if(!proxy_authorize(&quot;&quot;, &quot;subscriber_v2&quot;)) in<br>
&gt; register and invite request routes....<br>
<br>
</div>The function www_authorize and proxy_authorize are not in the uri_db<br>
module, there are in auth_db, but otherwise it should be fine i think.<br>
<div class="Ih2E3d"><br>
&gt; In Kamailio version 1.4 the modparam &quot;subscriber_table&quot; was removed from<br>
&gt; uri_db module, Is it enough to specify the new table in www_authorize and<br>
&gt; proxy_authorize functions?<br>
<br>
</div>The uri_db module is not related to the auth_db module, so its not<br>
necessary to setup this module if you do not need function from it.<br>
<br>
Cheers,<br>
<font color="#888888"><br>
Henning<br>
<br>
</font></blockquote></div><br></div>