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'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"><<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a>></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 <<a href="mailto:buscom123%2Bfs@gmail.com">buscom123+fs@gmail.com</a>> wrote:<br>
<br>
</div><div><div></div><div class="h5">> Hey Guys,<br>
><br>
> I just noticed this thread in the email queue so this may be coming too<br>
> late. I have the same problem and sent an email about it to this group with<br>
> the subject line: *Mod_Managed Mono is not following the system LD Path.*<br>
> *<br>
> *<br>
> That said,<br>
> I have mod_managed working but it is a bit of a hack to do so. I simply CD<br>
> into the mod directory and then start the server from there.<br>
><br>
> EG.<br>
><br>
> cd /usr/local/freeswitch/mod<br>
> ../bin/freeswitch<br>
><br>
> This makes that particular problem go away. I have tried changing the LD<br>
> Path, configured mono per the instructions on the wiki, etc… None of that<br>
> has worked for me but cd'ing into the mod directory and then starting the<br>
> server at least gets me running.<br>
><br>
> This might be useful to everyone while we wait for this to be resolved. I<br>
> have yet to add this as a bug in Jira. I was attempting to get some response<br>
> here before doing so.<br>
><br>
> Ryan<br>
><br>
> On Wed, Aug 31, 2011 at 3:16 PM, <<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a>> wrote:<br>
><br>
> > Thanks so much for working on this.<br>
> ><br>
> > Michael Giagnocavo <<a href="mailto:mgg@giagnocavo.net">mgg@giagnocavo.net</a>> wrote:<br>
> ><br>
> > > Yea I have been meaning to get around to it. I'll put it on my todo and<br>
> > see if I can figure it out. Sorry for the inconvenience.<br>
> > ><br>
> > > "<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a>" <<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a>> wrote:<br>
> > ><br>
> > ><br>
> > > Any chance of you fixing the bug? I think you must be right because in<br>
> > > the server stack trace I see a lot of things involving serialization.<br>
> > ><br>
> > > Michael Giagnocavo <<a href="mailto:mgg@giagnocavo.net">mgg@giagnocavo.net</a>> wrote:<br>
> > ><br>
> > > > It's probably more related to some cross-appdomain/serialization stuff<br>
> > that's specific to Mono. I wrote mod_managed against Mono 2.4 or so, and I<br>
> > think last time I ran it was 2.6, and only on CentOS 5. Probably something<br>
> > changed and is triggering a bug in mod_managed in the newer builds.<br>
> ><br>
><br>
</div></div><div><div></div><div class="h5">> ----------------------------------------------------<br>
> Alternatives:<br>
><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>
<br>
--<br>
Your life is like a penny. You'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>