[SR-Dev] Module conversion scripts

Jan Janak jan at iptel.org
Tue Feb 17 20:08:31 CET 2009


On 17-02 19:38, Andrei Pelinescu-Onciul wrote:
> On Feb 17, 2009 at 19:23, Jan Janak <jan at 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.



More information about the sr-dev mailing list