Hey Covici,<div><br></div><div>I currently have a DLL that uses 3 IAppPlugin interfaces, 2 IApiPlugin interfaces, and 2 ILoadNotificationPlugin interfaces. I build the dll on a separate machine but using this system I am able to deploy the dll to a running FreeSwitch and have it unload/reload the dll on the fly without any problems.Its been working great for a week or two. A few things you may want to keep in mind:</div>
<div><br></div><div>1) DLL&#39;s deployed in the managed directory are not exactly going to work well if they have dependencies on each-other as you never know which one will get loaded first. (Well, if you only drop them in 1 at a time it would probably work)</div>
<div><br></div><div>2) Any crash in FreeSwitch I have seen is because of the above issue, or because of some uncaught exception thrown from my code. If you look at your FreeSwitch logs or start FreeSwitch by hand and watch the cli you should see the exception that killed it.</div>
<div><br></div><div>When I run FreeSwitch as a service even my script in /etc/init.d/ has to cd into the mod directory and then start the server. Hope this helps!</div><div><br></div><div>Ryan</div><div><br></div><div><br>
<div class="gmail_quote">On Mon, Sep 12, 2011 at 8:01 PM,  <span dir="ltr">&lt;<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Well, I spoke too soon.  It works, but if I make a change and try to<br>
reload the .dll, it kills fs altogether -- makes it not too usable.<br>
<div class="im"><br>
R H &lt;<a href="mailto:buscom123%2Bfs@gmail.com">buscom123+fs@gmail.com</a>&gt; wrote:<br>
<br>
</div><div><div></div><div class="h5">&gt; Hey Guys,<br>
&gt;<br>
&gt; I just noticed this thread in the email queue so this may be coming too<br>
&gt; late. I have the same problem and sent an email about it to this group with<br>
&gt; the subject line: *Mod_Managed Mono is not following the system LD Path.*<br>
&gt; *<br>
&gt; *<br>
&gt; That said,<br>
&gt; I have mod_managed working but it is a bit of a hack to do so. I simply CD<br>
&gt; into the mod directory and then start the server from there.<br>
&gt;<br>
&gt; EG.<br>
&gt;<br>
&gt; cd /usr/local/freeswitch/mod<br>
&gt; ../bin/freeswitch<br>
&gt;<br>
&gt; This makes that particular problem go away. I have tried changing the LD<br>
&gt; Path, configured mono per the instructions on the wiki, etc… None of that<br>
&gt; has worked for me but cd&#39;ing into the mod directory and then starting the<br>
&gt; server at least gets me running.<br>
&gt;<br>
&gt; This might be useful to everyone while we wait for this to be resolved. I<br>
&gt; have yet to add this as a bug in Jira. I was attempting to get some response<br>
&gt; here before doing so.<br>
&gt;<br>
&gt; Ryan<br>
&gt;<br>
&gt; On Wed, Aug 31, 2011 at 3:16 PM, &lt;<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Thanks so much for working on this.<br>
&gt; &gt;<br>
&gt; &gt; Michael Giagnocavo &lt;<a href="mailto:mgg@giagnocavo.net">mgg@giagnocavo.net</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Yea I have been meaning to get around to it. I&#39;ll put it on my todo and<br>
&gt; &gt; see if I can figure it out. Sorry for the inconvenience.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &quot;<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a>&quot; &lt;<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a>&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Any chance of you fixing the bug?  I think you must be right because in<br>
&gt; &gt; &gt; the server stack trace I see a lot of things involving serialization.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Michael Giagnocavo &lt;<a href="mailto:mgg@giagnocavo.net">mgg@giagnocavo.net</a>&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; It&#39;s probably more related to some cross-appdomain/serialization stuff<br>
&gt; &gt; that&#39;s specific to Mono. I wrote mod_managed against Mono 2.4 or so, and I<br>
&gt; &gt; think last time I ran it was 2.6, and only on CentOS 5. Probably something<br>
&gt; &gt; changed and is triggering a bug in mod_managed in the newer builds.<br>
&gt; &gt;<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; ----------------------------------------------------<br>
&gt; Alternatives:<br>
&gt;<br>
&gt; ----------------------------------------------------<br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
--<br>
Your life is like a penny.  You&#39;re going to lose it.  The question is:<br>
How do<br>
you spend it?<br>
<br>
         John Covici<br>
         <a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a><br>
<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>