[Freeswitch-dev] Managed module similar to mod_skypopen
Hi, I want to write a managed module in c# which is similar to mod_skypopen module. In fact I am trying to understand mod_skypopen module and exploring the possibilities of writing it as a managed module in C# with the options of interfaces and skype users and other features. This is for my understanding and learning purposes about managed modules. Could someone please guide me how to add interfaces and handle calls that comes to these interfaces in managed code. Note: I looked into the examples that are provided at http://wiki.freeswitch.org/wiki/Mod_managed and tried to understand the basics. Thanks & Regards Suneel
Hi Suneel, I'm the developer of mod_skypopen. Unfortunately I know absolutely nothing about c# and managed modules. About mod_skypopen: it is an "endpoint" module, eg it implements an interface to the skype network to be used by the FS core. In such function, it is similar to all other "endpoints" modules (sofia, dingaling, skinny, etc). Don't know if such core functions needed by endpoints modules are exported to c#. Btw, are you sure you want to reimplement mod_skypopen (an "endpoint" module)? The knowledge you will acquire will only be useful to write another endpoint module, eg a module to interface with IAX. Application, format, etc modules works differently and use different core functions. Maybe you will find more useful to implement an application module, or a format module, or any other kind of module. -giovanni On Mon, Dec 19, 2011 at 1:07 PM, Papineni, Suneel <SPapineni@enghouse.com>wrote:
Hi,****
** **
I want to write a managed module in c# which is similar to mod_skypopen module. ****
** **
In fact I am trying to understand mod_skypopen module and exploring the possibilities of writing it as a managed module in C# with the options of interfaces and skype users and other features.****
** **
This is for my understanding and learning purposes about managed modules. Could someone please guide me how to add interfaces and handle calls that comes to these interfaces in managed code.****
** **
Note: I looked into the examples that are provided at http://wiki.freeswitch.org/wiki/Mod_managed and tried to understand the basics.****
** **
Thanks & Regards****
Suneel****
** **
** **
** **
** **
** **
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
Hi Suneel, The managed interfaces are identical to the C interfaces - we just use SWIG to auto-generate C# wrappers. Apart from the loading system and a few handy calls (like Logging), it really is entirely C-like. Unfortunately, the wrappers can get quite verbose, especially with double pointer arguments and so on. I suggest you look at an unmanaged module and see what it calls, then try the same calls from C#. If you're finding certain functions from being extra annoying via SWIG, let me know. Perhaps we can write some unmanaged functions to make accomplishing those things a bit more friendly for C#. -Michael From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Papineni, Suneel Sent: Monday, December 19, 2011 5:08 AM To: freeswitch-dev@lists.freeswitch.org Subject: [Freeswitch-dev] Managed module similar to mod_skypopen Hi, I want to write a managed module in c# which is similar to mod_skypopen module. In fact I am trying to understand mod_skypopen module and exploring the possibilities of writing it as a managed module in C# with the options of interfaces and skype users and other features. This is for my understanding and learning purposes about managed modules. Could someone please guide me how to add interfaces and handle calls that comes to these interfaces in managed code. Note: I looked into the examples that are provided at http://wiki.freeswitch.org/wiki/Mod_managed and tried to understand the basics. Thanks & Regards Suneel
participants (3)
-
Giovanni Maruzzelli
-
Michael Giagnocavo
-
Papineni, Suneel