[asterisk-dev] module embedding help ?

Kevin P. Fleming kpfleming at digium.com
Tue Nov 6 09:21:54 CST 2007


Luigi Rizzo wrote:

> ok it works on linux but not on FreeBSD. Need to check why - any
> documentation or suggestion on what mechanism is used to make dlopen()
> work on the embedded modules too ?

dlopen() is never called for the embedded modules; when the modules are
embedded, their file-level constructors are automatically executed when
the main 'asterisk' binary is executed, and they get registered on the
loader's list of available modules, but their load_module() callbacks
are not executed until a 'load' is requested for that module.

-- 
Kevin P. Fleming
Director of Software Technologies
Digium, Inc. - "The Genuine Asterisk Experience" (TM)



More information about the asterisk-dev mailing list