Hello Everybody,
The master branch now contains two new scripts in scripts subdirectory:
* ser_to_sr.sh: This script can be used to convert ser modules for use with sip-router core. * kam_to_sr.sh: This script can be used to convert kamailio modules for use with sip-router core.
Run one of the scripts in module directory to convert a module. Both scripts do all necessary database related changes, but I cannot guarantee that the converted module will work or even compile. In most cases you will probably have to do some extra changes to make the module compile, but at least you don't have to deal with the bulk of database related changes :-).
Jan.
On Feb 17, 2009 at 19:23, Jan Janak jan@iptel.org wrote:
Hello Everybody,
The master branch now contains two new scripts in scripts subdirectory:
- ser_to_sr.sh: This script can be used to convert ser modules for use with sip-router core.
- kam_to_sr.sh: This script can be used to convert kamailio modules for use with sip-router core.
Run one of the scripts in module directory to convert a module. Both scripts do all necessary database related changes, but I cannot guarantee that the converted module will work or even compile. In most cases you will probably have to do some extra changes to make the module compile, but at least you don't have to deal with the bulk of database related changes :-).
Do they add the db changes only if the module uses db (e.g. grep db/ ...) or always?
Andrei
On 17-02 19:38, Andrei Pelinescu-Onciul wrote:
On Feb 17, 2009 at 19:23, Jan Janak jan@iptel.org wrote:
Hello Everybody,
The master branch now contains two new scripts in scripts subdirectory:
- ser_to_sr.sh: This script can be used to convert ser modules for use with sip-router core.
- kam_to_sr.sh: This script can be used to convert kamailio modules for use with sip-router core.
Run one of the scripts in module directory to convert a module. Both scripts do all necessary database related changes, but I cannot guarantee that the converted module will work or even compile. In most cases you will probably have to do some extra changes to make the module compile, but at least you don't have to deal with the bulk of database related changes :-).
Do they add the db changes only if the module uses db (e.g. grep db/ ...) or always?
Only if at least one source file includes something from db/*. The script won't do anything if you try to convert a module which does not use the database api. But we can relax the test at the beginning of the script and include some other (not db related) changes there.
Jan.