[Freeswitch-users] Missing CHANNEL_HANGUP event in mod_event_socket
Victor Toofic
toofics at gmail.com
Wed Apr 1 17:44:13 PDT 2009
thnks a lot!!
I was getting scared.. lol
Freeswitch rules!!
On Wed, 2009-04-01 at 16:23 -0500, Anthony Minessale wrote:
> its a race,
>
> sometimes the socket connection ends before the channel
>
> the linger socket command was added to tell FS to wait for the last
> channel event before
> ending the connection
>
> just send the command
>
> linger
>
>
>
> On Wed, Apr 1, 2009 at 3:19 PM, Victor Toofic <toofics at gmail.com>
> wrote:
> Hi all!!
>
> I'm stuck trying to use mod_event_socket in outbound mode. The
> problem
> that I'm facing is that while in a incoming call, using
> "myevents" to
> monitor for the channel's events.. the event CHANNEL_HANGUP
> sometimes
> arrives and sometimes doesn't. I can't figure it out why.
>
> The dialplan is:
>
> <extension name="9999">
> <condition field="destination_number" expression="^9999$">
> <action application="verbose_events" data="true"/>
> <action application="socket" data="192.168.251.1:8384 async
> full"/>
> </condition>
> </extension>
>
> The process that handles the connection does:
>
> 1. connect
> 2. myevents
> (received: Reply-Text: +OK Events Enabled)
> 3. sendmsg\n call-command: execute\n execute-app-name: answer
> (received: Reply-Text: +OK)
>
> after this it waits for events and/or for the other party to
> hangup the
> call. (The DTMFs are for testing propourses).
>
> Sometimes the events that the process receives are:
>
> <<"CHANNEL_PARK">>
> <<"CHANNEL_EXECUTE">>
> <<"CHANNEL_EXECUTE_COMPLETE">>
> <<"CHANNEL_EXECUTE">>
> <<"CHANNEL_ANSWER">>
> <<"CHANNEL_EXECUTE_COMPLETE">>
> <<"DTMF">>
> <<"DTMF">>
> <<"CHANNEL_HANGUP">>
>
> (then it receives the "text/disconnect-notice" and the socket
> gets
> closed)
>
> and sometimes are:
>
> <<"CHANNEL_EXECUTE">>
> <<"CHANNEL_EXECUTE_COMPLETE">>
> <<"CHANNEL_EXECUTE">>
> <<"CHANNEL_ANSWER">>
> <<"CHANNEL_EXECUTE_COMPLETE">>
> <<"DTMF">>
> <<"DTMF">>
>
> (then it receives the "text/disconnect-notice" and the socket
> gets
> closed)
>
> As you can see, even sometimes the first CHANNEL_PARK event
> doesn't
> arrive. I'm very concerned about the missing CHANNEL_HANGUP
> event.
>
> In the other hand I was watching the events in a inbound
> connection to
> mod_event_socket with "event text all" and in this case there
> was no
> problem, all the events arrived as expected.
>
> Why in outbound mode some events get lost??
> I'm missing something??
>
> I've tried it in two different machines and the results are
> the same.
> I'm using FreeSWITCH Version 1.0.3 (exported) on linux.
>
> Thnks!!
>
> --
> Regards..
> Victor Toofic
>
>
> _______________________________________________
> Freeswitch-users mailing list
> 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/
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org
> iax:guest at conference.freeswitch.org/888
> googletalk:conf+888 at conference.freeswitch.org
> pstn:213-799-1400
> _______________________________________________
> Freeswitch-users mailing list
> 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
More information about the Freeswitch-users
mailing list