[Freeswitch-users] mod_managed failing to load on CentOS 5.2

Adam Long ajlong at worldlink.net
Wed Jan 21 18:07:24 PST 2009


Thanks Michael!

 

FreeSWITCH.Managed.dll loads successfully without tinkering.  Tks for the
patch!

Of course after adding the LD lib path.

 

Thank you very much!

Also saw you updated the BUG on Jira..  Thanks again great work!

 

Only other thing to note is "languages/mod_managed" still needs to be
manually added to modules.conf at this point.

Perhaps a patch with this commented out by default would be a good idea for
the future.

 

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael
Giagnocavo
Sent: Tuesday, January 20, 2009 5:36 PM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] mod_managed failing to load on CentOS 5.2

 

OK, I just checked in a fix that should make it load, or at least print a
helpful exception.

 

However, you will need the freeswitch/mod folder in the LD path, so:

 

export LD_LIBRARY_PATH=/usr/local/freeswitch/mod

 

or edit the ld configs.

 

-Michael

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael
Giagnocavo
Sent: Thursday, January 15, 2009 4:36 PM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] mod_managed failing to load on CentOS 5.2

 

Last time I tried it I actually built from a snapshot, which should be less
stable. It was on CentOS 5.2, however.

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Adam
Long
Sent: Thursday, January 15, 2009 4:25 PM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] mod_managed failing to load on CentOS 5.2

 

OK yah i'm experiencing exact same problem here

 

CentOS 5.2 2.6.18-92.el5 #1 SMP Tue Jun 10 18:49:47 EDT 2008 i686 athlon
i386 GNU/Linux

 

I too have no problems at all on Windows.

I'm going to try a Suse or Ubuntu prebuilt/packaged with Mono 2  I suspect
it may be kernel/mono incompatibility.

 

Did you compile mono from tarbal?

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Tim B
Sent: Thursday, January 15, 2009 6:18 PM
To: freeswitch-users at lists.freeswitch.org
Subject: [Freeswitch-users] mod_managed failing to load on CentOS 5.2

 

I changed the filename of the dll to FreeSWITCH.Managed.dll then tried to
restart.  FS now no longer starts.  Says mono error.... with a dump.  I
don't have the exact message because I am not on location with the machine.
I know it does compile, load and execute on a windows machine.  Just not on
Centos.
 
 
 


> From: freeswitch-users-request at lists.freeswitch.org
> Subject: Freeswitch-users Digest, Vol 31, Issue 77
> To: freeswitch-users at lists.freeswitch.org
> Date: Thu, 15 Jan 2009 00:20:53 -0800
> 
> Send Freeswitch-users mailing list submissions to
> freeswitch-users at lists.freeswitch.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> or, via email, send a message with subject or body 'help' to
> freeswitch-users-request at lists.freeswitch.org
> 
> You can reach the person managing the list at
> freeswitch-users-owner at lists.freeswitch.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Freeswitch-users digest..."
> 
> 
> Today's Topics:
> 
> 1. mod_managed failing to load on CentOS 5.2 (Tim B)
> 2. Re: Using mod_managed Linux/Mono 2.02 (Michael Giagnocavo)
> 3. zapata.conf immediate=yes in Asterisk - Freeswitch
> equivalent? (Scott Ellis)
> 4. Country specific tones - how to contribute? (Scott Ellis)
> 5. Re: Country specific tones - how to contribute? (Jason White)
> 6. Changes in PlayAndGetDigits (Juan Backson)
> 7. Re: OpenZAP parse error [-3012] [Q931E_INVALID_CRV] (Peter P GMX)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 14 Jan 2009 20:13:27 -0500
> From: Tim B <timb0311 at hotmail.com>
> Subject: [Freeswitch-users] mod_managed failing to load on CentOS 5.2
> To: <freeswitch-users at lists.freeswitch.org>
> Message-ID: <BAY117-W5065D9F4AAF59BB1B86359DED70 at phx.gbl>
> Content-Type: text/plain; charset="windows-1252"
> 
> 
> Got mod_managed compiled and installed. Now it isn't loading. See below...
> 
> 
> 1) Donwloaded fresh from SVN
> 
> 2) Compiled... and installed.. OK
> [root at phone2 mod_managed]# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
> [root at phone2 mod_managed]# make
> [root at phone2 mod_managed]# make install
> 
> 3) Added to modules.conf.xml :
> <load module="mod_managed"/>
> 
> 4) Started freeswitch from command line ... Error:
> 2009-01-14 20:01:42 [ERR] mod_managed.cpp:220 loadRuntime()
mono_domain_assembly_open failed.
> 2009-01-14 20:01:42 [CRIT] switch_loadable_module.c:839
switch_loadable_module_load_file() Error Loading module
/usr/local/freeswitch/mod/mod_managed.so
> **Module load routine returned an error**
> 
> 5) I know mono2 is working because I compiled and executed a helloworld
test class on machine.
> 
> Any ideas?
> 
> 
> 
> _________________________________________________________________
> Windows Live?: Keep your life in sync. 
>
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_0120
09
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090114/
6a5facdc/attachment-0001.html 
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 15 Jan 2009 00:34:20 -0500
> From: Michael Giagnocavo <mgg at giagnocavo.net>
> Subject: Re: [Freeswitch-users] Using mod_managed Linux/Mono 2.02
> To: "freeswitch-users at lists.freeswitch.org"
> <freeswitch-users at lists.freeswitch.org>
> Message-ID:
> <6E8D2069C08AA84A83D336E996AE4C670235BBB97F at mse17be1.mse17.exchange.ms>
> 
> Content-Type: text/plain; charset="us-ascii"
> 
> The managed assembly should be the same on both platforms. The correct
name is FreeSWITCH.Managed.dll. I'll get a patch to the
mod_managed/managed/Makefile.
> 
> Meanwhile, simply renaming mod_managed_lib.dll should work.
> 
> After that, make sure there's a "managed" subdirectory where the modules
are.
> 
> -Michael
> 
> 
> From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Adam
Long
> Sent: Wednesday, January 14, 2009 3:45 PM
> To: freeswitch-users at lists.freeswitch.org
> Subject: [Freeswitch-users] Using mod_managed Linux/Mono 2.02
> 
> Has anyone had any luck using mod_managed under linux with mono yet?
> The Wiki looks to still be lacking some linux installation instructions.
> I feel like I'm close but missing something simple.
> 
> I got as far as adding "languages/mod_managed" to the
/usr/src/freeswitch-1.0.2/modules.conf without quotes obviously.
> 
> My installed mono version is
> [root at sipcore-alpha mod]# mono -V
> Mono JIT compiler version 2.2 (tarball Wed Jan 14 09:44:57 PST 2009)
> Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
> TLS: __thread
> GC: Included Boehm (with typed GC)
> SIGSEGV: altstack
> Notifications: epoll
> Architecture: x86
> Disabled: none
> 
> I can successful compile freeswitch and it indeed compiles mod_managed.so
> 
> I added <load module="mod_managed" />
> to my /usr/local/freeswitch/conf/autoload_configs/modules.conf.xml
> 
> I did also create the /usr/local/freeswitch/mod/managed directory as
stated in the wiki as requirement.
> 
> But when I start freeswitch I get the following in regards to the
mod_managed loading...
> 
> 2009-01-14 14:19:12 [INFO] mod_managed.cpp:309 mod_managed_load() Loading
mod_managed (Common Language Infrastructure), Mono Version
> 2009-01-14 14:19:12 [INFO] mod_managed.cpp:213 loadRuntime() Calling
mono_assembly_loaded.
> 2009-01-14 14:19:12 [INFO] mod_managed.cpp:217 loadRuntime() Calling
mono_domain_assembly_open.
> 2009-01-14 14:19:12 [ERR] mod_managed.cpp:220 loadRuntime()
mono_domain_assembly_open failed.
> 2009-01-14 14:19:12 [CRIT] switch_loadable_module.c:839
switch_loadable_module_load_file() Error Loading module
/usr/local/freeswitch/mod/mod_managed.so
> **Module load routine returned an error**
> 
> One thing I think I may be missing is a FreeSWITCH.Managed.dll (this
exists on windows environment but doesn't seem to be compiled under linux)
> I thought perhaps mod_managed_lib.dll was the linux equivalent but that
exists and still no a no go.
> 
> Any ideas would be very welcome? Thank you!
> 
> 
> 
> Regards,
> -Adam
> 
> 
> 
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090115/
73ac27e4/attachment-0001.html 
> 
> ------------------------------
> 
> Message: 3
> Date: Thu, 15 Jan 2009 17:50:30 +1100
> From: Scott Ellis <scott.ellis at novatex.com.au>
> Subject: [Freeswitch-users] zapata.conf immediate=yes in Asterisk -
> Freeswitch equivalent?
> To: "freeswitch-users at lists.freeswitch.org"
> <freeswitch-users at lists.freeswitch.org>
> Message-ID: <496EDCB6.4020802 at novatex.com.au>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Searched the wiki and mailing lists as best I can, but with no luck.
> 
> How do I get OpenZap to answer a call immediately? (I do not need caller
id)
> 
> Scott
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Thu, 15 Jan 2009 18:16:13 +1100
> From: Scott Ellis <scott.ellis at novatex.com.au>
> Subject: [Freeswitch-users] Country specific tones - how to
> contribute?
> To: "freeswitch-users at lists.freeswitch.org"
> <freeswitch-users at lists.freeswitch.org>
> Message-ID: <496EE2BD.2050102 at novatex.com.au>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> I have tracked down a set of au tones from the mailing list, which I am 
> going to verify. How do I go about getting these added into the default 
> build so that they are available for all in future?
> 
> I tried <action application="set" data="ringback=${au-ring}"/> and this 
> did not work - where does it try and load the ring tone from? I have 
> entries in the tones.conf file, but these do not seem to be used.
> 
> Scott
> 
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Thu, 15 Jan 2009 18:24:05 +1100
> From: Jason White <jason at jasonjgw.net>
> Subject: Re: [Freeswitch-users] Country specific tones - how to
> contribute?
> To: freeswitch-users at lists.freeswitch.org
> Message-ID: <20090115072405.GA15789 at jdc.jasonjgw.net>
> Content-Type: text/plain; charset=us-ascii
> 
> Scott Ellis <scott.ellis at novatex.com.au> wrote:
> > I have tracked down a set of au tones from the mailing list, which I am 
> > going to verify. How do I go about getting these added into the default 
> > build so that they are available for all in future?
> 
> Maybe by posting a patch to the bug tracking system or the development
list?
> > 
> > I tried <action application="set" data="ringback=${au-ring}"/> and this 
> > did not work - where does it try and load the ring tone from? I have 
> > entries in the tones.conf file, but these do not seem to be used.
> 
> us-ring and uk-ring are defined in vars.xml. Note that they are global
> variables, referenced with the $${variable-name} syntax.
> 
> There's an ITU document referred to on the wiki with the official
definitions
> of ringback and other tones for various countries.
> 
> 
> 
> 
> ------------------------------
> 
> Message: 6
> Date: Thu, 15 Jan 2009 15:43:20 +0800
> From: "Juan Backson" <juanbackson at gmail.com>
> Subject: [Freeswitch-users] Changes in PlayAndGetDigits
> To: freeswitch-users at lists.freeswitch.org
> Message-ID:
> <27c25bc40901142343l34a3e99ftecf0df971e8e32f6 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hi,
> 
> Is there a change in the playAndGetDigits api? In the old release,
> 11102, my lua script is working but is not working in the latest
> release.
> The error I am getting is " Error in playAndGetDigits expected 10..10
> args, got 9 ".
> 
> Thanks,
> JB
> 
> 
> 
> ------------------------------
> 
> Message: 7
> Date: Thu, 15 Jan 2009 09:20:18 +0100
> From: Peter P GMX <Prometheus001 at gmx.net>
> Subject: Re: [Freeswitch-users] OpenZAP parse error [-3012]
> [Q931E_INVALID_CRV]
> To: freeswitch-users at lists.freeswitch.org
> Message-ID: <496EF1C2.8020607 at gmx.net>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hello Michael,
> 
> how much $$ are we talking about? I need this issue to be solved quickly
> and it's worth to spend some money.
> 
> I've read the following post:
> 
>
http://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg05792.h
tml
> and have the same symptom with "after hundreds of calls I start to get b
> channels that are stuck in states like "TERMINATING" or "HANGUP""
> 
> Best regards
> Peter
> 
> Michael Collins schrieb:
> > I believe these are all symptoms of something that Stefan is working
> > on: better Q931 timers. It's been on the todo list for some time but
> > we've had absolutely NOBODY willing to pony up serious $$ to support
> > OpenZAP development which means it is progressing at the speed of
> > developers' free time.
> >
> > -MC
> >
> > On Wed, Jan 14, 2009 at 9:44 AM, Peter P GMX <Prometheus001 at gmx.net>
wrote:
> > 
> >> After a time I receive the following error when a call comes in on our
> >> OpenZap span 2:
> >> parse error [-3012] [Q931E_INVALID_CRV]
> >>
> >> Here's the log
> >> 2009-01-14 13:14:11 [DEBUG] ozmod_isdn.c:320 zap_isdn_931_34() Yay I
got
> >> an event! Type:[4d] Size:[103] CRV: 23 (0x17, CTX: Originator)
> >> 2009-01-14 13:14:11 [DEBUG] ozmod_isdn.c:352 zap_isdn_931_34() zchan 0
> >> (-1:-1) source isdn_data->channels_remote_crv[0x17]
> >> 2009-01-14 13:14:11 [CRIT] ozmod_isdn.c:446 zap_isdn_931_34() Received
> >> Release with no matching channel 0
> >> 2009-01-14 13:14:11 [DEBUG] ozmod_isdn.c:781 zap_isdn_921_23() 931
parse
> >> error [-3012] [Q931E_INVALID_CRV]
> >> 2009-01-14 13:14:15 [DEBUG] ozmod_isdn.c:777 zap_isdn_921_23() READ 5
> >>
----------------------------------------------------------------------------
----
> >>
> >> When freeswitch is restarted or mod_openzap is reloaded, the error is
> >> gone away.
> >>
> >> Any idea what this can be?
> >>
> >> Best regards
> >> Peter
> >>
> >>
> >> _______________________________________________
> >> 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
> >>
> >> 
> >
> > _______________________________________________
> > 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
> >
> > 
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> 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
> 
> 
> End of Freeswitch-users Digest, Vol 31, Issue 77
> ************************************************

  _____  

Windows LiveT: Keep your life in sync. Check it out.
<http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090121/0edc8ceb/attachment-0002.html 


More information about the FreeSWITCH-users mailing list