The entire 1.2 branch is no longer supported and has been moved to EOL status. You should seriously consider upgrading to atleast the latest 1.4 On 1/22/15, 8:20 AM, "Grant Bagdasarian" <gb@cm.nl> wrote:
Will the version of the ESL library contained in the current version of Freeswitch work with the 1.2.13 version of Freeswitch?
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Peter Olsson Sent: Thursday, January 22, 2015 2:26 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Issue in .NET call control using ESL DLL
Version 1.2.13 is ancient. Please start by using a current version, and then report back to the list.
/Peter
2015-01-22 14:14 GMT+01:00 Grant Bagdasarian <gb@cm.nl>:
Hello,
I¹m experiencing a rather weird issue when using the ESL libraries for .NET.
When running the below code outside of Visual Studio in its own executable(Console Application) I¹m receiving the below exception. When the code is run inside Visual Studio, it works perfect.
Using ESL library contained in Freeswitch 1.2.13.
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at CSharp_ESLevent_Serialize(Void* jarg1, SByte* jarg2) in c:\users\gb\downloads\freeswitch-1.2.13\freeswitch-1.2.13\libs\esl\managed\esl _wrap.cpp:line 413 at ManagedEsl.ESLPINVOKE.ESLevent_Serialize(HandleRef jarg1, String jarg2) at VoiceEventSocketDemoClient.Program.Main(String[] args) in c:\Users\gb\Documents\Visual Studio 2012\Projects\VoiceEventSocketDemoClient\VoiceEventSocketDemoClient\Program.cs :line 26
TcpListener server = new TcpListener(IPAddress.Parse("LISTEN.IP.GOES.HERE"), 5000);
server.Start(); TcpClient eslClient = server.AcceptTcpClient(); ESLconnection eslConnection = new ESLconnection(eslClient.Client.Handle.ToInt32()); ESLevent e = eslConnection.GetInfo(); Console.WriteLine(e.Serialize("json"));
Does anyone know why this is happening? Maybe someone can reproduce the problem on their own PC using the above code example.
Thank you!
Regards,
Grant
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch Twitter: @FreeSWITCH