<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>We are experiencing weird behaviour when using socket connection to
mod_event_socket while running FS on FreeBSD and Mac OSX.</DIV>
<DIV> </DIV>
<DIV>We send a lot of bgapi and api commands to the FreeSwitch while controlling
and monitoring hundreds of sessions.</DIV>
<DIV> </DIV>
<DIV>We have created a simple load-test that displays the problem we face.</DIV>
<DIV>The load-test simply fires the following command continuosly to freeswitch:
“bgapi sofia status”, generally as fast as freeswitch can receive it.</DIV>
<DIV> </DIV>
<DIV>The following occurs, but only on FreeBSD or MacOSX (10.6.6) (both 64-bit)
while using latest version of FreeSwitch:</DIV>
<DIV> </DIV>
<DIV>- Replies and events are inter-mixed on the receive stream (the output from
freeswitch), causing protocol errors in the receiving client.</DIV>
<DIV> </DIV>
<DIV>This does _not_ happen on CentOS or Windows, so we wonder what could be
causing this. Is there a problem with threading or socket libs here?</DIV>
<DIV>We assume that FreeSwitch protect a mod_event_socket inbound connection
output stream by locking (or other means) to make sure not any two messages are
written ‘simultaneously’ causing garbage in the receiving end?</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Mauritz Lovgren</DIV>
<DIV>System Architect</DIV>
<DIV>IPLink Inc.</DIV>
<DIV><A href="http://www.iplink.no">http://www.iplink.no</A></DIV>
<DIV> </DIV>
<DIV> </DIV></DIV></DIV></BODY></HTML>