<div>I have only current ESL.so in perl path. <br></div><div>Debug shows that message has duplicate headers:</div><div><br></div><div>[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<br><br></div><br><div class="gmail_quote">2011/3/17 Dmitry Sytchev <span dir="ltr"><<a href="mailto:kbdfck@gmail.com">kbdfck@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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<div><div class="h5"><br><br><div class="gmail_quote">2011/3/17 Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">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">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?<br>
<div><div><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>
>> >> !DSPAM:4d80e61b32768938086861!<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><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br><div><div class="h5">Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<br>