VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
toofics at gmail.com Guest
|
Posted: Wed Apr 01, 2009 4:20 pm Post subject: [Freeswitch-users] Missing CHANNEL_HANGUP event in mod_event |
|
|
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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Wed Apr 01, 2009 4:32 pm Post subject: [Freeswitch-users] Missing CHANNEL_HANGUP event in mod_event |
|
|
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@gmail.com (toofics@gmail.com)> wrote:
Quote: | 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@lists.freeswitch.org (Freeswitch-users@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@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|