On Oct 13, 2010 at 17:47, Juha Heinanen jh@tutpro.com wrote:
Andrei Pelinescu-Onciul writes:
You should add it to the Makefile, e.g.: include ../../Makefile.defs
auto_gen= NAME=foo.so LIBS= DEFS+= -DSER_MOD_INTERFACE
include ../../Makefile.modules
how does the above work, it KAMAILIO_MOD_INTERFACE is defined by default? should it be first somehow undefined, because it is tested first in sr_module.h?
It's not defined by default. If you look at all the kamailio modules, they have DEFS+= -DKAMAILIO_MOD_INTERFACE (this is one of the things the porting scripts did automatically).
Andrei