<div>Hi,</div><div>I require that because by embedding libfreeswitch in my app there is time when my code using libfreeswitch is "out of context" so that I need to call switch_core_destroy but when I "in context" again I suppose to call switch_core_init_and_modload so that It would be usefull to have the core plugable as well.</div>
<div></div><div>Thanks</div><div></div><div><br></div><div class="gmail_quote">On Wed, Jun 30, 2010 at 2:07 PM, Mathieu Rene <span dir="ltr"><<a href="mailto:mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">A lot of stuff is statically initialized, the core isn't designed to be loaded/unloaded like that. Why exactly do you require calling switch_core_init_and_modload() after the initial startup?<br>
<br>
Mathieu Rene<br>
Avant-Garde Solutions Inc<br>
Office: + 1 (514) 664-1044 x100<br>
Cell: +1 (514) 664-1044 x200<br>
<a href="mailto:mrene@avgs.ca">mrene@avgs.ca</a><br>
<div><div class="h5"><br>
<br>
<br>
<br>
On 2010-06-30, at 12:44 PM, Paulo Vicentini wrote:<br>
<br>
> Hi,<br>
> I am embedding libfreeswitch to my application's process space and I need to "init" and "destroy" freeswitch while running my process.<br>
> I face problems after calling switch_core_destroy and when my business logic demands I call switch_core_init_and_modload to work with libfreeswitch (again)<br>
> It seems that struct switch_runtime runtime is not cleared aproprietaly when destroying the core.<br>
> I made some tests clearing runtime struct but still getting segfaults on apr_queue_trypush (trying to find out the issue)<br>
> Can you please help me out with this issue?<br>
> Thanks<br>
</div></div>> _______________________________________________<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>
<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>
</blockquote></div><br>