[Freeswitch-users] problem using mod_managed under linux

R H buscom123+fs at gmail.com
Tue Sep 13 19:51:55 MSD 2011


Hey Covici,

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:

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)

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.

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!

Ryan


On Mon, Sep 12, 2011 at 8:01 PM, <covici at ccs.covici.com> wrote:

> Well, I spoke too soon.  It works, but if I make a change and try to
> reload the .dll, it kills fs altogether -- makes it not too usable.
>
> R H <buscom123+fs at gmail.com> wrote:
>
> > Hey Guys,
> >
> > I just noticed this thread in the email queue so this may be coming too
> > late. I have the same problem and sent an email about it to this group
> with
> > the subject line: *Mod_Managed Mono is not following the system LD Path.*
> > *
> > *
> > That said,
> > I have mod_managed working but it is a bit of a hack to do so. I simply
> CD
> > into the mod directory and then start the server from there.
> >
> > EG.
> >
> > cd /usr/local/freeswitch/mod
> > ../bin/freeswitch
> >
> > This makes that particular problem go away. I have tried changing the LD
> > Path, configured mono per the instructions on the wiki, etc… None of that
> > has worked for me but cd'ing into the mod directory and then starting the
> > server at least gets me running.
> >
> > This might be useful to everyone while we wait for this to be resolved. I
> > have yet to add this as a bug in Jira. I was attempting to get some
> response
> > here before doing so.
> >
> > Ryan
> >
> > On Wed, Aug 31, 2011 at 3:16 PM, <covici at ccs.covici.com> wrote:
> >
> > > Thanks so much for working on this.
> > >
> > > Michael Giagnocavo <mgg at giagnocavo.net> wrote:
> > >
> > > > Yea I have been meaning to get around to it. I'll put it on my todo
> and
> > > see if I can figure it out. Sorry for the inconvenience.
> > > >
> > > > "covici at ccs.covici.com" <covici at ccs.covici.com> wrote:
> > > >
> > > >
> > > > Any chance of you fixing the bug?  I think you must be right because
> in
> > > > the server stack trace I see a lot of things involving serialization.
> > > >
> > > > Michael Giagnocavo <mgg at giagnocavo.net> wrote:
> > > >
> > > > > It's probably more related to some cross-appdomain/serialization
> stuff
> > > that's specific to Mono. I wrote mod_managed against Mono 2.4 or so,
> and I
> > > think last time I ran it was 2.6, and only on CentOS 5. Probably
> something
> > > changed and is triggering a bug in mod_managed in the newer builds.
> > >
> >
> > ----------------------------------------------------
> > Alternatives:
> >
> > ----------------------------------------------------
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
>
> --
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
>
>         John Covici
>         covici at ccs.covici.com
>
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110913/eae10371/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list