<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=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<title>Re: [Freeswitch-users] Issue in .NET call control using ESL DLL</title>
<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.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Ohh, I didn&#8217;t know that. Thank you for notifying me about this!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]
<b>On Behalf Of </b>Ken Rice<br>
<b>Sent:</b> Thursday, January 22, 2015 3:31 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>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;">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, &quot;Grant Bagdasarian&quot; &lt;<a href="gb@cm.nl">gb@cm.nl</a>&gt; wrote:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;">Will the version of the ESL library contained in the current version of Freeswitch work with the 1.2.13 version of Freeswitch?<br>
&nbsp;<br>
</span><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">
<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><br>
<span style="font-size:11.0pt;font-family:&quot;Courier New&quot;"><br>
</span>Version 1.2.13 is ancient. Please start by using a current version, and then report back to the list.<br>
<span style="font-size:11.0pt;font-family:&quot;Courier New&quot;"><br>
</span><br>
<span style="font-size:11.0pt;font-family:&quot;Courier New&quot;"><br>
</span>/Peter<br>
<span style="font-size:11.0pt;font-family:&quot;Courier New&quot;"><br>
</span><br>
<span style="font-size:11.0pt;font-family:&quot;Courier New&quot;"><br>
</span>2015-01-22 14:14 GMT&#43;01:00 Grant Bagdasarian &lt;<a href="gb@cm.nl">gb@cm.nl</a>&gt;:<br>
<span style="font-size:11.0pt;font-family:&quot;Courier New&quot;"><br>
</span>Hello,<br>
&nbsp;<br>
I&#8217;m experiencing a rather weird issue when using the ESL libraries for .NET.<br>
&nbsp;<br>
When running the below code outside of Visual Studio in its own executable(Console Application) I&#8217;m receiving the below exception.<br>
When the code is run inside Visual Studio, it works perfect.<br>
&nbsp;<br>
Using ESL library contained in Freeswitch 1.2.13.<br>
&nbsp;<br>
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.<br>
&nbsp;&nbsp;&nbsp;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>
&nbsp;&nbsp;&nbsp;at ManagedEsl.ESLPINVOKE.ESLevent_Serialize(HandleRef jarg1, String jarg2)<br>
&nbsp;&nbsp;&nbsp;at VoiceEventSocketDemoClient.Program.Main(String[] args) in c:\Users\gb\Documents\Visual Studio 2012\Projects\VoiceEventSocketDemoClient\VoiceEventSocketDemoClient\Program.cs:line 26<br>
&nbsp;<br>
<span style="font-size:10.0pt;font-family:Consolas;color:#4EC9B0">TcpListener</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:white">server</span> <span style="color:#B4B4B4">=</span> <span style="color:#569CD6">
new</span> <span style="color:#4EC9B0">TcpListener</span>(<span style="color:#4EC9B0">IPAddress</span><span style="color:#B4B4B4">.</span><span style="color:white">Parse</span>(<span style="color:#D69D85">&quot;LISTEN.IP.GOES.HERE&quot;</span>),
<span style="color:#B5CEA8">5000</span>);<br>
&nbsp;<br>
<span style="color:white">server</span><span style="color:#B4B4B4">.</span><span style="color:white">Start</span>();<br>
<span style="color:#4EC9B0">TcpClient</span> <span style="color:white">eslClient</span>
<span style="color:#B4B4B4">=</span> <span style="color:white">server</span><span style="color:#B4B4B4">.</span><span style="color:white">AcceptTcpClient</span>();<br>
<span style="color:#4EC9B0">ESLconnection</span> <span style="color:white">eslConnection</span>
<span style="color:#B4B4B4">=</span> <span style="color:#569CD6">new</span> <span style="color:#4EC9B0">
ESLconnection</span>(<span style="color:white">eslClient</span><span style="color:#B4B4B4">.</span><span style="color:white">Client</span><span style="color:#B4B4B4">.</span><span style="color:white">Handle</span><span style="color:#B4B4B4">.</span><span style="color:white">ToInt32</span>());<br>
<span style="color:#4EC9B0">ESLevent</span> <span style="color:white">e</span> <span style="color:#B4B4B4">
=</span> <span style="color:white">eslConnection</span><span style="color:#B4B4B4">.</span><span style="color:white">GetInfo</span>();<br>
<span style="color:#4EC9B0">Console</span><span style="color:#B4B4B4">.</span><span style="color:white">WriteLine</span>(<span style="color:white">e</span><span style="color:#B4B4B4">.</span><span style="color:white">Serialize</span>(<span style="color:#D69D85">&quot;json&quot;</span>));<br>
</span><br>
Does anyone know why this is happening? Maybe someone can reproduce the problem on their own PC using the above code example.
<br>
&nbsp;<br>
Thank you!<br>
&nbsp;<br>
Regards,<br>
<span style="color:#888888"><br>
Grant<br>
</span><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>
&nbsp;<span style="font-size:11.0pt;font-family:&quot;Courier New&quot;"><o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;">
<hr size="3" width="95%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">_________________________________________________________________________<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></span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:Consolas"><br>
</span><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;">-- <br>
Ken<br>
<u><span style="color:blue"><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>
</span></u>irc.freenode.net #freeswitch<br>
Twitter: @FreeSWITCH</span><o:p></o:p></p>
</div>
</body>
</html>