[Freeswitch-users] Issue in .NET call control using ESL DLL

Grant Bagdasarian gb at cm.nl
Thu Jan 22 17:53:14 MSK 2015


Ohh, I didn't know that. Thank you for notifying me about this!

Just to answer my own question: the ESL library version in the 1.4.15 version of Freeswitch does work with 1.2.13 of Freeswitch.

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Ken Rice
Sent: Thursday, January 22, 2015 3:31 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Issue in .NET call control using ESL DLL

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 at 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 at lists.freeswitch.org [mailto:freeswitch-users-bounces at 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 at 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 at 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 at 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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150122/40010c61/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list