Mod mono

From FreeSWITCH Wiki

Jump to: navigation, search

The mono module is created to add support for any .NET language, such as C#, F#, VB.NET, Python, JScript, and may other languages.

Installation

To get mod_mono to build, you’ll need Windows and VS 2008 (someone please provide linux build steps). You’ll have to generate mono.lib for your compiler. From here: http://www.mono-project.com/Embedding_Mono “On windows you need to generate an import library for mono.dll by getting the following file:

http://anonsvn.mono-project.com/viewcvs/*checkout*/trunk/mono/msvc/mono.def

and creating mono.lib with the command:

     lib /nologo /def:mono.def /out:mono.lib /machine:x86

“ Make sure your PATH has the Mono bin folder in it (such as “C:\Program files\Mono-1.9.1\bin”).

From there, you can add mod_mono and mod_mono_managed to the build setting in the VS SLN and compile them. Make sure the build configuration is not "Mixed Platforms" (sometimes VS switches to that build config after touching C#).

Load mod_mono in the modules.conf.xml, then drop your apps in <fsdir>\mod\mono\. If you compile debug, a few simple demos will compile and load (they are in the mod_mono_managed source, Demo.cs).

Examples

See Demo.cs in mod_mono.

See Also

Mod event socket dotnet

Personal tools