<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Please report bugs to <a href="http://jira.freeswitch.org">http://jira.freeswitch.org</a><div><br></div><div>/b</div><div><br><div><div>On May 28, 2009, at 4:20 PM, Gerry Hull wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Hello,<br><br>I am a Windows developer who has written an application around the event_socket interface. My client piece started with the C# EventSocket client Jonas Gauffin had posted on CodePlex.<br>Well, Jonas did not keep up that code on Codeplex, but after communicating with him, I did get the latest client-side code from the freeaswitch SVN, and it seems to work fine.<br><br>However, their is a persistent, nasty bug I'm seeing:<br><br>On an inbound call to FreeSwitch, I get the EventChannelAnswer event, which gives me some of the info I need on the incoming call.<br>Following that event, I should get an EventChannelExecuteComplete event, which gives me important information like call-direction,<br>channel-state, answer-state, caller-destination-number, caller-caller-id-name, etc.<br><br>The problem I'm seeing is that EventChannelAnswer ALWAYS fires on an inbound call, but EventChannelExecuteComplete does not fire --randomly. I thought this mighrt have something to do with linger,<br>but executing the linger command does not help.<br><br>Jonas made the following comment on the issue:<br><br>"It has been a bug in the eventsocket implementation in freeswitch. It can sometimes skip packets if the socket layer in the os gives an error code (internal socket buffer becomes full).<br>A simple send retry usually fixes the problem. I've created a patch for it long time ago (and reported it in FS jira). Mike Jerris have made an own fix for the issue. I do not know if it works, I'm still<br>running my own patch. I've attached it to this email. It's a patch for freeswitch\src\mod\event_handlers\mod_event_socket\ mod_event_socket.c, everything works gr8 for me with it."<br><br>Well, I have no idea how to apply the patch.<br><br>I've downloaded the latest code from trunk at<span class="Apple-converted-space"> </span><a href="http://files.freeswitch.org">files.freeswitch.org</a>, and built FS using Visual Studio 2008. all compiles fine. However, the bug sticks it's nasty head up randomly about every other call.<br><br>I've never done a patch... I tried downloading GNU Patch for windows, and tried applying it, but it reported errors.<br><br>Has this issue been fixed in core code? If not, can someone help me patch this? I'm dead in the water on a project until I resolve this. In every other aspect, I've found FS to be flawless.<br><br>Regards,<br><br>Gerry<br></span></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Brian West</div><div><a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a></div><div><br></div></div></span>-- Meet us at ClueCon! <a href="http://www.cluecon.com/">http://www.cluecon.com</a><br><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>