[Freeswitch-dev] Static module

Paulo Vicentini vicentini.paulo at gmail.com
Wed Feb 10 12:36:44 PST 2010


Hello,

Is it possible to build a module (e.g mod_sofia ) statically and link it
with FreeSwitch.dll / libfreeswitch.a ?

switch_loadable_module_load_file  always tries to get module struct first
from  libfreeswitch and after that, if not found, it tries the module
itself

... ...
dso = switch_dso_open("FreeSwitch.dll", load_global, &derr);
... ...
... ...
if (!interface_struct_handle) {
dso = switch_dso_open(path, load_global, &derr);
}
 ... ...
... ...
if (!interface_struct_handle) {
interface_struct_handle = switch_dso_data_sym(dso, struct_name, &derr);
}


What about SWITCH_MOD_DECLARE_STATIC?

Thanks

Paulo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100210/4918756f/attachment.html 


More information about the FreeSWITCH-dev mailing list