#20 uri_db module doesn't work with current subscriber table

1.4.x
closed-fixed
modules (454)
5
2008-09-01
2008-08-31
No

If parameter use_uri_table of uri_db modules is set to zero OpenSIPS won't start due to subscriber table version mismatch.

Current version (in 1.4.1) of subscriber table in scripts/mysql/auth_db-create.sql is 6:
INSERT INTO version (table_name, table_version) values ('subscriber','6');

But uri_db modules expects 3 in modules/uri_db/uridb_mod.c:
#define SUBSCRIBER_TABLE_VERSION 3

and fails with error in case of mismatch:

if (use_uri_table) {
/* Check table version */
ver = uridb_db_ver(&db_url, &db_table);
if (ver < 0) {
LM_ERR("Error while querying table version\n");
goto error;
} else if (ver < URI_TABLE_VERSION) {
LM_ERR("Invalid table version of the uri table\n");
goto error;
}
} else {
/* Check table version */
ver = uridb_db_ver(&db_url, &db_table);
if (ver < 0) {
LM_ERR("Error while querying table version\n");
goto error;
} else if (ver < SUBSCRIBER_TABLE_VERSION) {
LM_ERR("Invalid table version of the subscriber table\n");
goto error;
}
}

Discussion

  • Dan Pascu

    Dan Pascu - 2008-08-31

    Logged In: YES
    user_id=1296758
    Originator: NO

    Should be fixed

     
  • Bogdan-Andrei Iancu

    • assigned_to: nobody --> dan_pascu
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks