<div>FreeSWITCH Version 1.0.head (git-2c009dd 2011-03-15 14-29-04 -0500) </div><div><br></div><div class="gmail_quote">2011/3/16 Peter Olsson <span dir="ltr">&lt;<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="SV" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:#1F497D">Are you on latest GIT HEAD?</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:#1F497D">/Peter</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:#1F497D"> </span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt">Från:</span></b><span style="font-size:10.0pt"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>För </b>Dmitry Sytchev<br>
<b>Skickat:</b> den 16 mars 2011 17:29<br><b>Till:</b> FreeSWITCH Users Help<br><b>Ämne:</b> [Freeswitch-users] Unexpected out of order command/reply &#39;+OK event listener enabled plain&#39; in perl ESL outbound</span></p>
</div><div><div class="h5"><p class="MsoNormal"> </p><div><p class="MsoNormal">In my outbound async full ESL script after some moment there are out-of-order message on every &quot;execute&quot; call, and this breaks my event handling in some way.</p>
</div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Content-Type: command/reply.Reply-Text: +OK event listener enabled plain..  </p></div><div><p class="MsoNormal">I want to execute some commands syncronously, but setEventLock seems to be broken by this behavior.  </p>
</div><div><p class="MsoNormal">As the workaround I had to write lock_for_execute_complete function, which waits for execute completion of applications that need to be run sync, but it effectively destroys async events by processing them while waiting for CHANNEL_EXECUTE_COMPLETE.</p>
</div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">here is a part of socket dump, note second &quot;Content-Type: command/reply.Reply-Text: +OK event listener enabled plain..&quot; right after execute. There is no event command in script besides the very beginning, so why these messages appear?</p>
</div><div><p class="MsoNormal"><br clear="all"></p></div></div></div><div><div class="h5">T <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> -&gt; <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> [AP]<br>
api uuid_setvar 06d55974-4fe8-11e0-a7c0-e3bb2141c22a pbx_subscriber_customer_id 1 <br>#<br>T <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> -&gt; <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> [AP]<br>
.. <br>##<br>T <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> -&gt; <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> [AP]<br>Content-Type: api/response.Content-Length: 4.. <br>#<br>
T <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> -&gt; <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> [AP]<br>+OK. <br>##<br>T <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> -&gt; <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> [AP]<br>
  api sofia_contact <a href="mailto:s000002@asdasd.com" target="_blank">s000002@asdasd.com</a>  <br>#<br>T <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> -&gt; <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> [AP]<br>
.. <br>##<br>T <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> -&gt; <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> [AP]<br>Content-Type: api/response.Content-Length: 96.. <br>#<br>
T <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> -&gt; <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> [AP]<br>sofia/local/sip:s000002@172.19.36.54:5061;fs_nat=yes;fs_path=sip%3As000002%40172.19.36.54%3A5061 <br>
##<br>T <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> -&gt; <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> [AP]<br>Event-Name: SOCKET_DATA.Content-Type: api/response.Content-Length: 96..sofia/local/sip:s000002@172.19.36.54:5061;fs_nat=<br>
yes;fs_path=sip%3As000002%40172.19.36.54%3A5061 <br>#<br>T <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> -&gt; <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> [AP]<br>sendmsg.call-command: execute.execute-app-name: bridge.execute-app-arg: {originate_timeout=10,hangup_after_bridge=false,<br>
  ignore_early_media=false}user/<a href="mailto:s000002@asdasd.com" target="_blank">s000002@asdasd.com</a><br>#<br><b>T <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> -&gt; <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> [AP]</b><b><br>
<b>Content-Type: command/reply.Reply-Text: +OK event listener enabled plain.. </b></b><br>#<br>T <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> -&gt; <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> [AP]<br>
Content-Type: command/reply.Reply-Text: +OK.. <br><br>-- <br>Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<br></div></div>!DSPAM:4d80e61b32768938086861! </div></div><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><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<br>