[asterisk-dev] Asterisk module spanning multiple file

Stefan Schmidt sst at sil.at
Thu Aug 18 05:24:29 CDT 2011



Am 18.08.11 12:19, schrieb Jim Boykin:
> Can someone help me on how to compile Asterisk module spanning
> multiple files? Default makefile only supports single source file per
> module.
> 
> Jim

Hello

you need a global flag on the ast_module_info which should looks like this:

for example:

AST_MODULE_INFO(ASTERISK_GPL_KEY,AST_MODFLAG_GLOBAL_SYMBOLS, "your
Application",
                .load = load_module,
                .unload = unload_module,
                .reload = reload_module,
               );

with this it should compile all necessary files.

best regards

stefan



More information about the asterisk-dev mailing list