<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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.E-postmall17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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=SV link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>What does the perl script look like? Do you have a sample you can share with us? “+OK event listener enabled plain” should only be sent as a reply after you have subscribed to events.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>/Peter<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></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;font-family:"Tahoma","sans-serif"'>Från:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>För </b>Dmitry Sytchev<br><b>Skickat:</b> den 17 mars 2011 13:08<br><b>Till:</b> FreeSWITCH Users Help<br><b>Ämne:</b> Re: [Freeswitch-users] Unexpected out of order command/reply '+OK event listener enabled plain' in perl ESL outbound<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>I have only current ESL.so in perl path. <o:p></o:p></p></div><div><p class=MsoNormal>Debug shows that message has duplicate headers:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>[DEBUG] src/esl.c:1166 esl_send() SEND<br>sendmsg<br>call-command: execute<br>execute-app-name: bridge<br>execute-app-arg: {originate_timeout=10,hangup_after_bridge=false,ignore_early_media=false}user/<a href="mailto:s000001@yota.access.obit.ru">s000001@yota.access.obit.ru</a><br><br>[DEBUG] src/esl.c:977 esl_recv_event() RECV HEADER [Content-Type] = [command/reply]<br>[DEBUG] src/esl.c:977 esl_recv_event() RECV HEADER [Reply-Text] = [+OK event listener enabled plain]<br>[DEBUG] src/esl.c:977 esl_recv_event() RECV HEADER [Content-Type] = [command/reply]<br>[DEBUG] src/esl.c:977 esl_recv_event() RECV HEADER [Reply-Text] = [+OK]<br>[DEBUG] src/esl.c:1138 esl_recv_event() RECV MESSAGE<br>Event-Name: SOCKET_DATA<br>Content-Type: command/reply<br>Reply-Text: +OK<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>2011/3/17 Dmitry Sytchev <<a href="mailto:kbdfck@gmail.com">kbdfck@gmail.com</a>><o:p></o:p></p><p class=MsoNormal>Ok, I'll try to check library and rebuild with `make current`.<br>I posted it here as I thought that maybe this is my fault somewhere in script or event handling logic. <br>I'll open Jira issue if I can't deal with this error by full recompilation.<br><br>BTW, if `make sure` is outdated, maybe it's time to remove reference to it from post-build info that FS displays after make?<br><br>Thanks for your help<o:p></o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>2011/3/17 Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>><o:p></o:p></p><p class=MsoNormal>You sure you did not install old ESL.so in your perl path?<br><br>btw, its "make current" not "make sure" that is an old one.<br><br>I would also turn on the debug level in the script as well.<br><br>We have no reports of any problems like this.<br><br>Speaking of, why are you doing this here instead of JIRA?<o:p></o:p></p><div><div><p class=MsoNormal><br><br>On Wed, Mar 16, 2011 at 4:21 PM, Dmitry Sytchev <<a href="mailto:kbdfck@gmail.com" target="_blank">kbdfck@gmail.com</a>> wrote:<br>> I'm using ESL.so and ESL.pm for perl outbound ESL, and Net::Server as server<br>> engine.<br>> I already tried to rebuild and reinstall with `make sure` including perlmod<br>> in esl library dir<br>><br>> 2011/3/16 Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>><br>>><br>>> Are you using your own client or libESL which takes care of this for you?<br>>><br>>><br>>> On Wed, Mar 16, 2011 at 11:55 AM, Dmitry Sytchev <<a href="mailto:kbdfck@gmail.com" target="_blank">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" target="_blank">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" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a><br>>> >> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] För Dmitry<br>>> >> 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<br>>> >> 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<br>>> >> plain..<br>>> >><br>>> >><br>>> >> I want to execute some commands syncronously, but setEventLock seems to<br>>> >> be<br>>> >> broken by this behavior.<br>>> >><br>>> >> As the workaround I had to write lock_for_execute_complete function,<br>>> >> which<br>>> >> waits for execute completion of applications that need to be run sync,<br>>> >> but<br>>> >> it effectively destroys async events by processing them while waiting<br>>> >> 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<br>>> >> after<br>>> >> execute. There is no event command in script besides the very<br>>> >> 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" 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> -> <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>>> >><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" target="_blank">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<br>>> >> 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>>> >> <br>>> >> _______________________________________________<br>>> >> FreeSWITCH-users mailing list<br>>> >> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>>> >><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" target="_blank">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>>> 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" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>>> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">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" target="_blank">sip:888@conference.freeswitch.org</a><br>>> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>>> pstn:+19193869900<br>>><br>>> _______________________________________________<br>>> FreeSWITCH-users mailing list<br>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>> 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" target="_blank">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>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" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">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" target="_blank">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:+19193869900<br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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><o:p></o:p></p></div></div></div><p class=MsoNormal><br><br clear=all><o:p></o:p></p></div></div><p class=MsoNormal>-- <o:p></o:p></p><div><div><p class=MsoNormal>Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<o:p></o:p></p></div></div></div><p class=MsoNormal><br><br clear=all><br>-- <br>Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<br>!DSPAM:4d81fb9032761898113797! <o:p></o:p></p></div></body></html>