its possible but it would require build system work to generate some code and to change the list of files.<br><br>see switch_pcm.c<br><br><br><br><div class="gmail_quote">On Wed, Feb 10, 2010 at 2:36 PM, Paulo Vicentini <span dir="ltr"><<a href="mailto:vicentini.paulo@gmail.com">vicentini.paulo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hello,<br></div><div><br></div><div>Is it possible to build a module (e.g mod_sofia ) statically and link it with FreeSwitch.dll / libfreeswitch.a ?</div>
<div><br></div><div>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 </div>
<div><br></div><div>... ... </div><div>dso = switch_dso_open("FreeSwitch.dll", load_global, &derr);<br></div><div>... ...<br>        </div><div>... ... </div><div>if (!interface_struct_handle) {<br>                dso = switch_dso_open(path, load_global, &derr);<br>
        }<br></div><div> ... ...</div><div>... ...</div><div>if (!interface_struct_handle) {<br>                        interface_struct_handle = switch_dso_data_sym(dso, struct_name, &derr);<br>                }<br><br></div><div><br></div><div>What about SWITCH_MOD_DECLARE_STATIC?</div>
<div><br></div><div>Thanks</div><div><br></div><font color="#888888"><div>Paulo</div>
</font><br>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:+19193869900<br>