[Freeswitch-dev] Static module

Anthony Minessale anthony.minessale at gmail.com
Wed Feb 10 13:02:40 PST 2010


its possible but it would require build system work to generate some code
and to change the list of files.

see switch_pcm.c



On Wed, Feb 10, 2010 at 2:36 PM, Paulo Vicentini
<vicentini.paulo at gmail.com>wrote:

> 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
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100210/001fe9ab/attachment.html 


More information about the FreeSWITCH-dev mailing list