[OpenSER-Users] renaming of database modules

Henning Westerholt henning.westerholt at 1und1.de
Wed Feb 6 16:26:22 CET 2008


Hi all,

the database modules and the supporting infrastrucure in the OpenSER core are 
heavily reworked in the trunk version at the moment. 

Common functionality that is present in all database modules were integrated 
in the core, new functionality have been added. Its planned to unify the 
overall behaviour and structure of all modules that are interfacing with 
databases, to make them more maintainable, more safe and also more bug-free. 
Important foundations for this changes have already been created.

As part of this process the database modules names were changed. All these 
module names are now prefixed with 'db_'. The new names of the modules are 
now db_mysql, db_postgres, db_unixodbc, db_berkeley, db_text, db_flatstore.

If you use one database module with the trunk version, you must change some 
parts of the configuration. 

Old module configuration:
loadmodule "mysql.so"
modparam("mysql", "ping_interval", 300)
modparam("mysql", "auto_reconnect", 1)

New module configuration:
loadmodule "db_mysql.so"
modparam("db_mysql", "ping_interval", 300)
modparam("db_mysql", "auto_reconnect", 1)

The database URLs for modules that connect to a database, e.g. usrloc don't 
need to be changed, if you use mysql, postgres, unixodbc or flatstore DBs.
For the dbtext and db_berkeley modules the new database URLs are:

modparam("usrloc", "db_url", "text://my-database-path")"  
modparam("usrloc", "db_url", "berkeley://my-database-path")"

(you need to adapt the path to your setup, of course).

If you encounter any bugs that were introduced during this change, please open 
a bug report on the tracker.

Best regards,

Henning




More information about the sr-users mailing list