[Freeswitch-users] Unexpected out of order command/reply '+OK event listener enabled plain' in perl ESL outbound

Peter Olsson peter.olsson at visionutveckling.se
Thu Mar 17 15:32:13 MSK 2011


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.

/Peter

Från: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] För Dmitry Sytchev
Skickat: den 17 mars 2011 13:08
Till: FreeSWITCH Users Help
Ämne: Re: [Freeswitch-users] Unexpected out of order command/reply '+OK event listener enabled plain' in perl ESL outbound

I have only current ESL.so in perl path.
Debug shows that message has duplicate headers:

[DEBUG] src/esl.c:1166 esl_send() SEND
sendmsg
call-command: execute
execute-app-name: bridge
execute-app-arg: {originate_timeout=10,hangup_after_bridge=false,ignore_early_media=false}user/s000001 at yota.access.obit.ru<mailto:s000001 at yota.access.obit.ru>

[DEBUG] src/esl.c:977 esl_recv_event() RECV HEADER [Content-Type] = [command/reply]
[DEBUG] src/esl.c:977 esl_recv_event() RECV HEADER [Reply-Text] = [+OK event listener enabled plain]
[DEBUG] src/esl.c:977 esl_recv_event() RECV HEADER [Content-Type] = [command/reply]
[DEBUG] src/esl.c:977 esl_recv_event() RECV HEADER [Reply-Text] = [+OK]
[DEBUG] src/esl.c:1138 esl_recv_event() RECV MESSAGE
Event-Name: SOCKET_DATA
Content-Type: command/reply
Reply-Text: +OK

2011/3/17 Dmitry Sytchev <kbdfck at gmail.com<mailto:kbdfck at gmail.com>>
Ok, I'll try to check library and rebuild with `make current`.
I posted it here as I thought that maybe this is my fault somewhere in script or event handling logic.
I'll open Jira issue if I can't deal with this error by full recompilation.

BTW, if `make sure` is outdated, maybe it's time to remove reference to it from post-build info that FS displays after make?

Thanks for your help

2011/3/17 Anthony Minessale <anthony.minessale at gmail.com<mailto:anthony.minessale at gmail.com>>
You sure you did not install old ESL.so in your perl path?

btw, its "make current" not "make sure" that is an old one.

I would also turn on the debug level in the script as well.

We have no reports of any problems like this.

Speaking of, why are you doing this here instead of JIRA?


On Wed, Mar 16, 2011 at 4:21 PM, Dmitry Sytchev <kbdfck at gmail.com<mailto:kbdfck at gmail.com>> wrote:
> I'm using ESL.so and ESL.pm for perl outbound ESL, and Net::Server as server
> engine.
> I already tried to rebuild and reinstall with `make sure` including perlmod
> in esl library dir
>
> 2011/3/16 Anthony Minessale <anthony.minessale at gmail.com<mailto:anthony.minessale at gmail.com>>
>>
>> Are you using your own client or libESL which takes care of this for you?
>>
>>
>> On Wed, Mar 16, 2011 at 11:55 AM, Dmitry Sytchev <kbdfck at gmail.com<mailto:kbdfck at gmail.com>> wrote:
>> > FreeSWITCH Version 1.0.head (git-2c009dd 2011-03-15 14-29-04 -0500)
>> > 2011/3/16 Peter Olsson <peter.olsson at visionutveckling.se<mailto:peter.olsson at visionutveckling.se>>
>> >>
>> >> Are you on latest GIT HEAD?
>> >>
>> >>
>> >>
>> >> /Peter
>> >>
>> >>
>> >>
>> >> Från: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>
>> >> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] För Dmitry
>> >> Sytchev
>> >> Skickat: den 16 mars 2011 17:29
>> >> Till: FreeSWITCH Users Help
>> >> Ämne: [Freeswitch-users] Unexpected out of order command/reply '+OK
>> >> event
>> >> listener enabled plain' in perl ESL outbound
>> >>
>> >>
>> >>
>> >> In my outbound async full ESL script after some moment there are
>> >> out-of-order message on every "execute" call, and this breaks my event
>> >> handling in some way.
>> >>
>> >>
>> >>
>> >> Content-Type: command/reply.Reply-Text: +OK event listener enabled
>> >> plain..
>> >>
>> >>
>> >> I want to execute some commands syncronously, but setEventLock seems to
>> >> be
>> >> broken by this behavior.
>> >>
>> >> 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.
>> >>
>> >>
>> >>
>> >> here is a part of socket dump, note second "Content-Type:
>> >> command/reply.Reply-Text: +OK event listener enabled plain.." right
>> >> after
>> >> execute. There is no event command in script besides the very
>> >> beginning, so
>> >> why these messages appear?
>> >>
>> >> T 127.0.0.1:8006<http://127.0.0.1:8006> -> 127.0.0.1:43282<http://127.0.0.1:43282> [AP]
>> >> api uuid_setvar 06d55974-4fe8-11e0-a7c0-e3bb2141c22a
>> >> pbx_subscriber_customer_id 1
>> >> #
>> >> T 127.0.0.1:8006<http://127.0.0.1:8006> -> 127.0.0.1:43282<http://127.0.0.1:43282> [AP]
>> >> ..
>> >> ##
>> >> T 127.0.0.1:43282<http://127.0.0.1:43282> -> 127.0.0.1:8006<http://127.0.0.1:8006> [AP]
>> >> Content-Type: api/response.Content-Length: 4..
>> >> #
>> >> T 127.0.0.1:43282<http://127.0.0.1:43282> -> 127.0.0.1:8006<http://127.0.0.1:8006> [AP]
>> >> +OK.
>> >> ##
>> >> T 127.0.0.1:8006<http://127.0.0.1:8006> -> 127.0.0.1:43282<http://127.0.0.1:43282> [AP]
>> >>   api sofia_contact s000002 at asdasd.com<mailto:s000002 at asdasd.com>
>> >> #
>> >> T 127.0.0.1:8006<http://127.0.0.1:8006> -> 127.0.0.1:43282<http://127.0.0.1:43282> [AP]
>> >> ..
>> >> ##
>> >> T 127.0.0.1:43282<http://127.0.0.1:43282> -> 127.0.0.1:8006<http://127.0.0.1:8006> [AP]
>> >> Content-Type: api/response.Content-Length: 96..
>> >> #
>> >> T 127.0.0.1:43282<http://127.0.0.1:43282> -> 127.0.0.1:8006<http://127.0.0.1:8006> [AP]
>> >>
>> >>
>> >> sofia/local/sip:s000002 at 172.19.36.54:5061;fs_nat=yes;fs_path=sip%3As000002%40172.19.36.54%3A5061
>> >> ##
>> >> T 127.0.0.1:8006<http://127.0.0.1:8006> -> 127.0.0.1:43282<http://127.0.0.1:43282> [AP]
>> >> Event-Name: SOCKET_DATA.Content-Type: api/response.Content-Length:
>> >> 96..sofia/local/sip:s000002 at 172.19.36.54:5061;fs_nat=
>> >> yes;fs_path=sip%3As000002%40172.19.36.54%3A5061
>> >> #
>> >> T 127.0.0.1:8006<http://127.0.0.1:8006> -> 127.0.0.1:43282<http://127.0.0.1:43282> [AP]
>> >> sendmsg.call-command: execute.execute-app-name: bridge.execute-app-arg:
>> >> {originate_timeout=10,hangup_after_bridge=false,
>> >>   ignore_early_media=false}user/s000002 at asdasd.com<mailto:s000002 at asdasd.com>
>> >> #
>> >> T 127.0.0.1:43282<http://127.0.0.1:43282> -> 127.0.0.1:8006<http://127.0.0.1:8006> [AP]
>> >> Content-Type: command/reply.Reply-Text: +OK event listener enabled
>> >> plain..
>> >> #
>> >> T 127.0.0.1:43282<http://127.0.0.1:43282> -> 127.0.0.1:8006<http://127.0.0.1:8006> [AP]
>> >> Content-Type: command/reply.Reply-Text: +OK..
>> >>
>> >> --
>> >> Best regards,
>> >>
>> >> Dmitry Sytchev,
>> >> IT Engineer
>> >>
>> >> _______________________________________________
>> >> FreeSWITCH-users mailing list
>> >> FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
>> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> >>
>> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> >> http://www.freeswitch.org
>> >>
>> >
>> >
>> >
>> > --
>> > Best regards,
>> >
>> > Dmitry Sytchev,
>> > IT Engineer
>> >
>> > _______________________________________________
>> > FreeSWITCH-users mailing list
>> > FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
>> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> > http://www.freeswitch.org
>> >
>> >
>>
>>
>>
>> --
>> Anthony Minessale II
>>
>> FreeSWITCH http://www.freeswitch.org/
>> ClueCon http://www.cluecon.com/
>> Twitter: http://twitter.com/FreeSWITCH_wire
>>
>> AIM: anthm
>> MSN:anthony_minessale at hotmail.com<mailto:MSN%3Aanthony_minessale at hotmail.com>
>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<mailto:PAYPAL%3Aanthony.minessale at gmail.com>
>> IRC: irc.freenode.net<http://irc.freenode.net> #freeswitch
>>
>> FreeSWITCH Developer Conference
>> sip:888 at conference.freeswitch.org<mailto:sip%3A888 at conference.freeswitch.org>
>> googletalk:conf+888 at conference.freeswitch.org<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
>> pstn:+19193869900
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
>
> --
> Best regards,
>
> Dmitry Sytchev,
> IT Engineer
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com<mailto:MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<mailto:PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net<http://irc.freenode.net> #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org<mailto:sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
Best regards,

Dmitry Sytchev,
IT Engineer



--
Best regards,

Dmitry Sytchev,
IT Engineer
!DSPAM:4d81fb9032761898113797!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110317/01400f85/attachment-0001.html 


More information about the FreeSWITCH-users mailing list