[Freeswitch-dev] freeswitch use with .NET
Michael Jerris
mike at jerris.com
Sat May 19 14:41:08 EDT 2007
I have not done a mod_mono build for windows yet. I have been working for some time getting the things into the mono tree necessary for a pure msvc build of the mono runtime, its 90% of the way there but I am still missing a few pieces. As soon as I have at least a mono snapshot that can be built natively in msvc, this will be added to the FreeSWITCH(tm) msvc build. If you would like to assist, you can look at the eglib library in the mono tree. There are 3 or 4 functions outstanding that need proper windows implementations, specifically g_convert (which may or may not really be necessary) and the spawn functions. If someone can complete those functions in eglib, I have the rest of the build modifications ready in my working copy to test.
Mike
________________________________
From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Jason Steele
Sent: Saturday, May 19, 2007 12:38 PM
To: freeswitch-dev at lists.freeswitch.org; mrs at segtel.dk
Subject: Re: [Freeswitch-dev] freeswitch use with .NET
Martin,
Sorry it's taken so long to get back to you.
I'm having trouble getting mod_mono to load.
I don't know what you mean by "After first make go in to modules.conf and set: languages/mod_mono". Is this appropriate when using VS2005 on Windows? I searched for modules.conf but could only find modules.conf.in and modules.conf.xml.
However, I did add the line <load module="mod_mono"/> to modules.conf.xml.
This caused the following error when FreeSWITCH was loading:
2007-05-19 16:57:51 [ERR] switch_loadable_module.c:704 switch_loadable_module_load_file() Error Loading module d:\FreeSWITCH\debug\mod\mod_mono.dll
I searched for mod_mono,dll and could not find one. However in FreeSwitch\src\mod\languages I found a mod_mono folder with mod_mono.c in it, but there was no project file for it and it doesn't appear to be included within the Freeswitch Visual Studio solution.
Can you offer any pointers on how to get mod_mono built and loaded?
Many thanks,
Jason
________________________________
From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Martin Sørensen
Sent: 14 May 2007 13:09
To: freeswitch-dev at lists.freeswitch.org
Subject: Re: [Freeswitch-dev] freeswitch use with .NET
Just a quit how to ;o)
Checkout FS
After first make go in to modules.conf and set: languages/mod_mono
When make installall
You have to rename the FreeSwitch.NET.dll to FreeSwitch.Net.dll in "Installdir"/lib
Now goto "installdir"/conf/modules.conf.xml and set: <load module="mod_mono"/> that will load mod_mono runtime
Make a mono dir in "installdir"/mod
Start FS and see if mod_mono get loaded
Put your "Module" .dll in mod/mono
And Start FS again to see if your module gets loaded
Regards Martin
________________________________
From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Jason Steele
Sent: 14. maj 2007 13:35
To: freeswitch-dev at lists.freeswitch.org
Subject: Re: [Freeswitch-dev] freeswitch use with .NET
Martin,
Thanks for this. Mod_mono appears to have been removed from quite a few recent builds. I'll get the latest build (which I assume includes it again) and let you know how I get on.
Thanks,
Jason
________________________________
From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Martin Sørensen
Sent: 14 May 2007 09:04
To: freeswitch-dev at lists.freeswitch.org
Subject: Re: [Freeswitch-dev] freeswitch use with .NET
Jason.
You have to set <load module="mod_mono"/> in conf/module.conf.xml that will load mod_mono runtime.
You should make a directory in /lib called mono and put you .dll in that dir then it will load on FS startup
Regards Martin
________________________________
From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Jason Steele
Sent: 14. maj 2007 09:41
To: freeswitch-dev at lists.freeswitch.org
Subject: Re: [Freeswitch-dev] freeswitch use with .NET
Mike,
These examples are useful, but there is something missing.
Whilst I can create a project, paste the code and compile it, there is nothing on how to configure FreeSWITCH to use it.
I understand how to configure FreeSWITCH to be aware of other applications by adding entries to modules.conf.xml, but how should this be done for .NET modules I have built?
Without the fundamental ability to get the examples working I am finding it impossible to start experimenting with FreeeSwitch and .NET.
Thanks,
Jason
________________________________
From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Michael Jerris
Sent: 14 May 2007 05:10
To: freeswitch-dev at lists.freeswitch.org
Subject: Re: [Freeswitch-dev] freeswitch use with .NET
As I noted in my response on the users list, we are still working on getting the managed code for this back in sync with the rest of FreeSWITCH(tm). Unfortunately we don't have any great api docs on the .net side yet, but by example, check out the links below:
http://lists.freeswitch.org/pipermail/freeswitch-users/2006-August/000302.html
http://lists.freeswitch.org/pipermail/freeswitch-users/2006-September/000345.html
Mike
________________________________
From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Josh Lloyd
Sent: Sunday, May 13, 2007 5:02 PM
To: freeswitch-dev at lists.freeswitch.org
Subject: [Freeswitch-dev] freeswitch use with .NET
Hi,
I saw a few open ended threads regarding using FreeSwitch. I have downloaded the c# assembly and have it compiled successfully and referenced from a test project. There are so many classes, properties, methods, etc... I really am not sure where to begin and it does not see anyone else has been answered yet. Is there any documentation or perhaps a sample program available using the .net api.
Many thanks!
Josh Lloyd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20070519/ce9758b9/attachment-0001.html
More information about the Freeswitch-dev
mailing list