[SR-Users] [sr-dev] Table version problems

marius zbihlei marius.zbihlei at 1and1.ro
Thu Sep 2 15:30:03 CEST 2010


Raúl Alexis Betancor Santana wrote:
> On Jueves 02 Septiembre 2010 13:50:24 Raúl Alexis Betancor Santana escribió:
>   
>> On Jueves 02 Septiembre 2010 08:59:17 marius zbihlei escribió:
>>     
>>> Raúl Alexis Betancor Santana wrote:
>>>       
>>>> Hi ... jus trying Kam 3.0.3 ... I get blocked on this error:
>>>>
>>>> ERROR: <core> [db.c:408]: invalid version 0 for table 0 found, expected
>>>> 6 (check table structure and table "version")
>>>> ERROR: auth_db [authdb_mod.c:250]: error during table version check.
>>>>
>>>> It should be checking agains subscriber table version ... but I don't
>>>> know why it try to found '0' table ...
>>>>
>>>> if I do a:
>>>>
>>>> insert into version (table_name,table_version) values('0','6');
>>>>
>>>> It get solved ... but thats only a trick.
>>>>         
>>> Hello,
>>>
>>> The check is done once (at fixup time) for the www_authorize and
>>> proxy_authorize calls. The table name is the second parameter given to
>>> those calls.
>>>
>>> Be sure to use www_authorize("explample.com", "subscriber");
>>>       
>> I know ...
>>
>> if(is_method("REGISTER")) {
>>       # authenticate the REGISTER requests
>>       if(!www_authorize("","subscriber")) {
>>          xlog("L_ALERT", "REGISTER ($fU)($ru) no autorizado - Return Code
>> ($rc) IP=$si\n");
>>          www_challenge("","0");
>>  ^^^^^^^^^^^^^^^^^  Upsssssssssss ... XPPPPPPPPPPPP
>>
>> Thanks
>>     
>
> This was ok ... but I don't know why it try to check version of table '0' ... 
> :-(
>
> Best regards
>   
Hello,
Please grep for any usage of www_authorize and proxy_authorize in the 
kamailio.cfg configuration file. You still might have something lurking 
there..
Marius



More information about the sr-users mailing list