van Stijn, Mike writes:
when i try to use the Permissions module with a db
backend I get this
error in syslog and kamailio crashes
Nov 27 13:09:48 uplink01 /usr/local/sbin/kamailio[14345]: ERROR: <core> [db.c:408]:
invalid version 4 for table trusted found, expected 5 (check table structure and table
"version")
Nov 27 13:09:48 uplink01 /usr/local/sbin/kamailio[14345]: ERROR: permissions
[trusted.c:183]: error during table version check.
Nov 27 13:09:48 uplink01 /usr/local/sbin/kamailio[14345]: ERROR: permissions
[permissions.c:617]: failed to initialize the allow_trusted function
Nov 27 13:09:48 uplink01 /usr/local/sbin/kamailio[14345]: ERROR: <core>
[sr_module.c:874]: init_mod(): Error while initializing module permissions
It seems that the sql scripts wheren't updated if the table structure
for the trusted table has changed.
kamailio didn't crash. i have changed the version number in
lib/srdb1/schema/trusted.xml. the scripts should get generated, when you
run 'make dbschema' during your kamailio build.
-- juha