[OpenSIPS-Devel] [ opensips-Bugs-2085329 ] uri_db module doesn't work with current subscriber table

SourceForge.net noreply at sourceforge.net
Mon Sep 1 18:45:39 CEST 2008


Bugs item #2085329, was opened at 2008-08-31 19:10
Message generated for change (Settings changed) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2085329&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.4.x
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Andrew Pogrebennyk (apogrebennyk)
>Assigned to: Dan (dan_pascu)
Summary: uri_db module doesn't work with current subscriber table

Initial Comment:
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;
                }
        }


----------------------------------------------------------------------

Comment By: Dan (dan_pascu)
Date: 2008-08-31 19:55

Message:
Logged In: YES 
user_id=1296758
Originator: NO

Should be fixed

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2085329&group_id=232389



More information about the Devel mailing list