[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
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/00030 2.html http://lists.freeswitch.org/pipermail/freeswitch-users/2006-September/00 0345.html Mike ________________________________ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Josh Lloyd Sent: Sunday, May 13, 2007 5:02 PM To: freeswitch-dev@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
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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: 14 May 2007 05:10 To: freeswitch-dev@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 FreeSWITCHT. 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.ht ml http://lists.freeswitch.org/pipermail/freeswitch-users/2006-September/000345 .html Mike _____ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Josh Lloyd Sent: Sunday, May 13, 2007 5:02 PM To: freeswitch-dev@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
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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: 14. maj 2007 09:41 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: 14 May 2007 05:10 To: freeswitch-dev@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.ht... http://lists.freeswitch.org/pipermail/freeswitch-users/2006-September/000345... Mike ________________________________ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Josh Lloyd Sent: Sunday, May 13, 2007 5:02 PM To: freeswitch-dev@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
Martin, Thanks for this. Mod_mono appears to have been removed from quite a few recent builds. Ill get the latest build (which I assume includes it again) and let you know how I get on. Thanks, Jason _____ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Martin Sørensen Sent: 14 May 2007 09:04 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: 14. maj 2007 09:41 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: 14 May 2007 05:10 To: freeswitch-dev@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. Unfortunately we dont 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.ht ml http://lists.freeswitch.org/pipermail/freeswitch-users/2006-September/000345 .html Mike _____ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Josh Lloyd Sent: Sunday, May 13, 2007 5:02 PM To: freeswitch-dev@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
Mod_mono was not removed from any builds. Mike ________________________________ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: Monday, May 14, 2007 7:35 AM To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Martin Sørensen Sent: 14 May 2007 09:04 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: 14. maj 2007 09:41 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: 14 May 2007 05:10 To: freeswitch-dev@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.ht... http://lists.freeswitch.org/pipermail/freeswitch-users/2006-September/000345... Mike ________________________________ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Josh Lloyd Sent: Sunday, May 13, 2007 5:02 PM To: freeswitch-dev@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
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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: 14. maj 2007 13:35 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Martin Sørensen Sent: 14 May 2007 09:04 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: 14. maj 2007 09:41 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: 14 May 2007 05:10 To: freeswitch-dev@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.ht... http://lists.freeswitch.org/pipermail/freeswitch-users/2006-September/000345... Mike ________________________________ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Josh Lloyd Sent: Sunday, May 13, 2007 5:02 PM To: freeswitch-dev@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
Hey guys, Just to clarify this. Have you guys actually gotten the .net assembly usable in your own code bases and working in some capacity? Josh Lloyd From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Martin Sørensen Sent: Monday, May 14, 2007 8:09 AM To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: 14. maj 2007 13:35 To: freeswitch-dev@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. Ill get the latest build (which I assume includes it again) and let you know how I get on. Thanks, Jason _____ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Martin Sørensen Sent: 14 May 2007 09:04 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: 14. maj 2007 09:41 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: 14 May 2007 05:10 To: freeswitch-dev@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. Unfortunately we dont 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.ht ml http://lists.freeswitch.org/pipermail/freeswitch-users/2006-September/000345 .html Mike _____ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Josh Lloyd Sent: Sunday, May 13, 2007 5:02 PM To: freeswitch-dev@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
In the past it did, it got out of sync with the C code, so it does not currently. Specifically the marshalling code is not in sync with the structures and api that it is marshalling. Mike ________________________________ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Josh Lloyd Sent: Monday, May 14, 2007 11:44 AM To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] freeswitch use with .NET Hey guys, Just to clarify this. Have you guys actually gotten the .net assembly usable in your own code bases and working in some capacity? Josh Lloyd From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Martin Sørensen Sent: Monday, May 14, 2007 8:09 AM To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: 14. maj 2007 13:35 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Martin Sørensen Sent: 14 May 2007 09:04 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: 14. maj 2007 09:41 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: 14 May 2007 05:10 To: freeswitch-dev@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.ht... http://lists.freeswitch.org/pipermail/freeswitch-users/2006-September/000345... Mike ________________________________ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Josh Lloyd Sent: Sunday, May 13, 2007 5:02 PM To: freeswitch-dev@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
Martin, Sorry its taken so long to get back to you. Im having trouble getting mod_mono to load. I dont 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 doesnt 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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Martin Sørensen Sent: 14 May 2007 13:09 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: 14. maj 2007 13:35 To: freeswitch-dev@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. Ill get the latest build (which I assume includes it again) and let you know how I get on. Thanks, Jason _____ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Martin Sørensen Sent: 14 May 2007 09:04 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: 14. maj 2007 09:41 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: 14 May 2007 05:10 To: freeswitch-dev@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. Unfortunately we dont 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.ht ml http://lists.freeswitch.org/pipermail/freeswitch-users/2006-September/000345 .html Mike _____ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Josh Lloyd Sent: Sunday, May 13, 2007 5:02 PM To: freeswitch-dev@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
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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: Saturday, May 19, 2007 12:38 PM To: freeswitch-dev@lists.freeswitch.org; mrs@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Martin Sørensen Sent: 14 May 2007 13:09 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: 14. maj 2007 13:35 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Martin Sørensen Sent: 14 May 2007 09:04 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Jason Steele Sent: 14. maj 2007 09:41 To: freeswitch-dev@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: 14 May 2007 05:10 To: freeswitch-dev@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.ht... http://lists.freeswitch.org/pipermail/freeswitch-users/2006-September/000345... Mike ________________________________ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Josh Lloyd Sent: Sunday, May 13, 2007 5:02 PM To: freeswitch-dev@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
Hi josh. I'm working on getting all the .Net code up to speed with FS code. But it is going really slow at the moment...;o) If you look at the link MikeJ posted you should be able to get something going. As of now there is a problem then you do the Register in the module. You will get an exception in mono... something to do with switch_loadable_module_build_dynamic Regards Martin ________________________________ From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Josh Lloyd Sent: 13. maj 2007 23:02 To: freeswitch-dev@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
participants (4)
-
Jason Steele
-
Josh Lloyd
-
Martin Sørensen
-
Michael Jerris