[asterisk-dev] Asterisk module spanning multiple file

Kevin P. Fleming kpfleming at digium.com
Thu Aug 18 07:06:26 CDT 2011


On 08/18/2011 05:24 AM, Stefan Schmidt wrote:
>
>
> 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.

No, this is unrelated to a module being built from multiple source files.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype: kpfleming
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list