<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Will the version of the ESL library contained in the current version of Freeswitch work with the 1.2.13 version of Freeswitch?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]
<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<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Version 1.2.13 is ancient. Please start by using a current version, and then report back to the list.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">/Peter<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">2015-01-22 14:14 GMT+01:00 Grant Bagdasarian <<a href="mailto:gb@cm.nl" target="_blank">gb@cm.nl</a>>:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I’m experiencing a rather weird issue when using the ESL libraries for .NET.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">When running the below code outside of Visual Studio in its own executable(Console Application) I’m receiving the below exception.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">When the code is run inside Visual Studio, it works perfect.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Using ESL library contained in Freeswitch 1.2.13.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> 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<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> at ManagedEsl.ESLPINVOKE.ESLevent_Serialize(HandleRef jarg1, String jarg2)<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> at VoiceEventSocketDemoClient.Program.Main(String[] args) in c:\Users\gb\Documents\Visual Studio 2012\Projects\VoiceEventSocketDemoClient\VoiceEventSocketDemoClient\Program.cs:line
26<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#1E1E1E">
<span style="font-size:10.0pt;font-family:Consolas;color:#4EC9B0">TcpListener</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:white">server</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4">=</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#569CD6">new</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#4EC9B0">TcpListener</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">(</span><span style="font-size:10.0pt;font-family:Consolas;color:#4EC9B0">IPAddress</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4">.</span><span style="font-size:10.0pt;font-family:Consolas;color:white">Parse</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">(</span><span style="font-size:10.0pt;font-family:Consolas;color:#D69D85">"LISTEN.IP.GOES.HERE"</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">), </span><span style="font-size:10.0pt;font-family:Consolas;color:#B5CEA8">5000</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">);</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#1E1E1E">
<span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#1E1E1E">
<span style="font-size:10.0pt;font-family:Consolas;color:white">server</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4">.</span><span style="font-size:10.0pt;font-family:Consolas;color:white">Start</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">();</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#1E1E1E">
<span style="font-size:10.0pt;font-family:Consolas;color:#4EC9B0">TcpClient</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:white">eslClient</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4">=</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:white">server</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4">.</span><span style="font-size:10.0pt;font-family:Consolas;color:white">AcceptTcpClient</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">();</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#1E1E1E">
<span style="font-size:10.0pt;font-family:Consolas;color:#4EC9B0">ESLconnection</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:white">eslConnection</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4">=</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#569CD6">new</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#4EC9B0">ESLconnection</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">(</span><span style="font-size:10.0pt;font-family:Consolas;color:white">eslClient</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4">.</span><span style="font-size:10.0pt;font-family:Consolas;color:white">Client</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4">.</span><span style="font-size:10.0pt;font-family:Consolas;color:white">Handle</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4">.</span><span style="font-size:10.0pt;font-family:Consolas;color:white">ToInt32</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">());</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#1E1E1E">
<span style="font-size:10.0pt;font-family:Consolas;color:#4EC9B0">ESLevent</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:white">e</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4">=</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:10.0pt;font-family:Consolas;color:white">eslConnection</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4">.</span><span style="font-size:10.0pt;font-family:Consolas;color:white">GetInfo</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">();</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#1E1E1E">
<span style="font-size:10.0pt;font-family:Consolas;color:#4EC9B0">Console</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4">.</span><span style="font-size:10.0pt;font-family:Consolas;color:white">WriteLine</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">(</span><span style="font-size:10.0pt;font-family:Consolas;color:white">e</span><span style="font-size:10.0pt;font-family:Consolas;color:#B4B4B4">.</span><span style="font-size:10.0pt;font-family:Consolas;color:white">Serialize</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">(</span><span style="font-size:10.0pt;font-family:Consolas;color:#D69D85">"json"</span><span style="font-size:10.0pt;font-family:Consolas;color:gainsboro">));</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Does anyone know why this is happening? Maybe someone can reproduce the problem on their own PC using the above code example.
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thank you!<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Regards,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#888888"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#888888">Grant<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>