<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] Issue in .NET call control using ESL DLL</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>The entire 1.2 branch is no longer supported and has been moved to EOL status.<BR>
<BR>
You should seriously consider upgrading to atleast the latest 1.4<BR>
<BR>
On 1/22/15, 8:20 AM, "Grant Bagdasarian" <<a href="gb@cm.nl">gb@cm.nl</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Will the version of the ESL library contained in the current version of Freeswitch work with the 1.2.13 version of Freeswitch?<BR>
<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10pt'><B>From:</B> <a href="freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>] <B>On Behalf Of </B>Peter Olsson<BR>
<B>Sent:</B> Thursday, January 22, 2015 2:26 PM<BR>
<B>To:</B> FreeSWITCH Users Help<BR>
<B>Subject:</B> Re: [Freeswitch-users] Issue in .NET call control using ESL DLL<BR>
</SPAN></FONT></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'> <BR>
</SPAN></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'>Version 1.2.13 is ancient. Please start by using a current version, and then report back to the list.<BR>
</SPAN></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'> <BR>
</SPAN></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'>/Peter<BR>
</SPAN></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'> <BR>
</SPAN></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'>2015-01-22 14:14 GMT+01:00 Grant Bagdasarian <<a href="gb@cm.nl">gb@cm.nl</a>>:<BR>
</SPAN></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'>Hello,<BR>
<BR>
I’m experiencing a rather weird issue when using the ESL libraries for .NET.<BR>
<BR>
When running the below code outside of Visual Studio in its own executable(Console Application) I’m receiving the below exception.<BR>
When the code is run inside Visual Studio, it works perfect.<BR>
<BR>
Using ESL library contained in Freeswitch 1.2.13.<BR>
<BR>
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.<BR>
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<BR>
at ManagedEsl.ESLPINVOKE.ESLevent_Serialize(HandleRef jarg1, String jarg2)<BR>
at VoiceEventSocketDemoClient.Program.Main(String[] args) in c:\Users\gb\Documents\Visual Studio 2012\Projects\VoiceEventSocketDemoClient\VoiceEventSocketDemoClient\Program.cs:line 26<BR>
<BR>
</SPAN></FONT><FONT COLOR="#4EC9B0"><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>TcpListener</SPAN></FONT></FONT></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'> <FONT COLOR="#FFFFFF">server</FONT> <FONT COLOR="#B4B4B4">=</FONT> <FONT COLOR="#569CD6">new</FONT> <FONT COLOR="#4EC9B0">TcpListener</FONT>(<FONT COLOR="#4EC9B0">IPAddress</FONT><FONT COLOR="#B4B4B4">.</FONT><FONT COLOR="#FFFFFF">Parse</FONT>(<FONT COLOR="#D69D85">"LISTEN.IP.GOES.HERE"</FONT>), <FONT COLOR="#B5CEA8">5000</FONT>);<BR>
<BR>
<FONT COLOR="#FFFFFF">server</FONT><FONT COLOR="#B4B4B4">.</FONT><FONT COLOR="#FFFFFF">Start</FONT>();<BR>
<FONT COLOR="#4EC9B0">TcpClient</FONT> <FONT COLOR="#FFFFFF">eslClient</FONT> <FONT COLOR="#B4B4B4">=</FONT> <FONT COLOR="#FFFFFF">server</FONT><FONT COLOR="#B4B4B4">.</FONT><FONT COLOR="#FFFFFF">AcceptTcpClient</FONT>();<BR>
<FONT COLOR="#4EC9B0">ESLconnection</FONT> <FONT COLOR="#FFFFFF">eslConnection</FONT> <FONT COLOR="#B4B4B4">=</FONT> <FONT COLOR="#569CD6">new</FONT> <FONT COLOR="#4EC9B0">ESLconnection</FONT>(<FONT COLOR="#FFFFFF">eslClient</FONT><FONT COLOR="#B4B4B4">.</FONT><FONT COLOR="#FFFFFF">Client</FONT><FONT COLOR="#B4B4B4">.</FONT><FONT COLOR="#FFFFFF">Handle</FONT><FONT COLOR="#B4B4B4">.</FONT><FONT COLOR="#FFFFFF">ToInt32</FONT>());<BR>
<FONT COLOR="#4EC9B0">ESLevent</FONT> <FONT COLOR="#FFFFFF">e</FONT> <FONT COLOR="#B4B4B4">=</FONT> <FONT COLOR="#FFFFFF">eslConnection</FONT><FONT COLOR="#B4B4B4">.</FONT><FONT COLOR="#FFFFFF">GetInfo</FONT>();<BR>
<FONT COLOR="#4EC9B0">Console</FONT><FONT COLOR="#B4B4B4">.</FONT><FONT COLOR="#FFFFFF">WriteLine</FONT>(<FONT COLOR="#FFFFFF">e</FONT><FONT COLOR="#B4B4B4">.</FONT><FONT COLOR="#FFFFFF">Serialize</FONT>(<FONT COLOR="#D69D85">"json"</FONT>));<BR>
</SPAN></FONT></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'> <BR>
Does anyone know why this is happening? Maybe someone can reproduce the problem on their own PC using the above code example. <BR>
<BR>
Thank you!<BR>
<BR>
Regards,<BR>
<FONT COLOR="#888888"> <BR>
Grant<BR>
</FONT><BR>
_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<BR>
</SPAN></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services: <BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>-- <BR>
Ken<BR>
<FONT COLOR="#0000FF"><U><a href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><BR>
<a href="http://www.ClueCon.com">http://www.ClueCon.com</a><BR>
<a href="http://www.OSTAG.org">http://www.OSTAG.org</a><BR>
</U></FONT>irc.freenode.net #freeswitch<BR>
Twitter: @FreeSWITCH<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>