I'm using ESL.so and ESL.pm for perl outbound ESL, and Net::Server as server engine. <br>I already tried to rebuild and reinstall with `make sure` including perlmod in esl library dir<br><br><div class="gmail_quote">2011/3/16 Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Are you using your own client or libESL which takes care of this for you?<br>
<div><div></div><div class="h5"><br>
<br>
On Wed, Mar 16, 2011 at 11:55 AM, Dmitry Sytchev <<a href="mailto:kbdfck@gmail.com">kbdfck@gmail.com</a>> wrote:<br>
> FreeSWITCH Version 1.0.head (git-2c009dd 2011-03-15 14-29-04 -0500)<br>
> 2011/3/16 Peter Olsson <<a href="mailto:peter.olsson@visionutveckling.se">peter.olsson@visionutveckling.se</a>><br>
>><br>
>> Are you on latest GIT HEAD?<br>
>><br>
>><br>
>><br>
>> /Peter<br>
>><br>
>><br>
>><br>
>> Från: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>
>> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] För Dmitry Sytchev<br>
>> Skickat: den 16 mars 2011 17:29<br>
>> Till: FreeSWITCH Users Help<br>
>> Ämne: [Freeswitch-users] Unexpected out of order command/reply '+OK event<br>
>> listener enabled plain' in perl ESL outbound<br>
>><br>
>><br>
>><br>
>> In my outbound async full ESL script after some moment there are<br>
>> out-of-order message on every "execute" call, and this breaks my event<br>
>> handling in some way.<br>
>><br>
>><br>
>><br>
>> Content-Type: command/reply.Reply-Text: +OK event listener enabled plain..<br>
>><br>
>><br>
>> I want to execute some commands syncronously, but setEventLock seems to be<br>
>> broken by this behavior.<br>
>><br>
>> As the workaround I had to write lock_for_execute_complete function, which<br>
>> waits for execute completion of applications that need to be run sync, but<br>
>> it effectively destroys async events by processing them while waiting for<br>
>> CHANNEL_EXECUTE_COMPLETE.<br>
>><br>
>><br>
>><br>
>> here is a part of socket dump, note second "Content-Type:<br>
>> command/reply.Reply-Text: +OK event listener enabled plain.." right after<br>
>> execute. There is no event command in script besides the very beginning, so<br>
>> why these messages appear?<br>
>><br>
>> T <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> -> <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<br>
>> pbx_subscriber_customer_id 1<br>
>> #<br>
>> T <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> -> <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> -> <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> -> <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> -> <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">s000002@asdasd.com</a><br>
>> #<br>
>> T <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> -> <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> -> <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> -> <a href="http://127.0.0.1:8006" target="_blank">127.0.0.1:8006</a> [AP]<br>
>><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> -> <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:<br>
>> 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> -> <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:<br>
>> {originate_timeout=10,hangup_after_bridge=false,<br>
>> Â ignore_early_media=false}user/<a href="mailto:s000002@asdasd.com">s000002@asdasd.com</a><br>
>> #<br>
>> T <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> -> <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 event listener enabled plain..<br>
>> #<br>
>> T <a href="http://127.0.0.1:43282" target="_blank">127.0.0.1:43282</a> -> <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>
>> !DSPAM:4d80e61b32768938086861!<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>
><br>
><br>
><br>
> --<br>
> Best regards,<br>
><br>
> Dmitry Sytchev,<br>
> IT Engineer<br>
><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>
><br>
<br>
<br>
<br>
--<br>
</div></div>Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
<div><div></div><div class="h5"><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<br>