event inconsistency
Hi there, Has anyone ever had problems with events not being sent out over socket connections reliably? I am noticing that sometimes event notifications are sent, and sometimes they are not. For example, I have subscribed to CHANNEL_HANGUP, but depending on the timing of when I hangup the call (or when the dial plan hangs up), the event is not received. I confirmed with tcpdump that it is not even sent over the socket. Has anyone else seen his? What might be the problem? Thanks
Did you try latest git? I recently submitted a patch to handle resend on the socket, if the socket is really busy (and returns "would block" state). It's in latest git. Besides that I've never seen any problems. /Peter ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Adam Kelloway [adam.kelloway@newpace.ca] Skickat: den 26 maj 2011 17:36 Till: FreeSWITCH Users Help Ämne: [Freeswitch-users] event inconsistency Hi there, Has anyone ever had problems with events not being sent out over socket connections reliably? I am noticing that sometimes event notifications are sent, and sometimes they are not. For example, I have subscribed to CHANNEL_HANGUP, but depending on the timing of when I hangup the call (or when the dial plan hangs up), the event is not received. I confirmed with tcpdump that it is not even sent over the socket. Has anyone else seen his? What might be the problem? Thanks _______________________________________________ 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 !DSPAM:4dde73da32761960016355!
I got the latest git yesterday from scratch just to make sure. Is there any way I can see debug output of the send operations? I didn't notice this behaviour when I was running the 1.0.6 tar, it is only since I started using git that I saw it. On 3:59 PM, Peter Olsson wrote:
Did you try latest git? I recently submitted a patch to handle resend on the socket, if the socket is really busy (and returns "would block" state). It's in latest git.
Besides that I've never seen any problems.
/Peter ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Adam Kelloway [adam.kelloway@newpace.ca] Skickat: den 26 maj 2011 17:36 Till: FreeSWITCH Users Help Ämne: [Freeswitch-users] event inconsistency
Hi there,
Has anyone ever had problems with events not being sent out over socket connections reliably? I am noticing that sometimes event notifications are sent, and sometimes they are not. For example, I have subscribed to CHANNEL_HANGUP, but depending on the timing of when I hangup the call (or when the dial plan hangs up), the event is not received. I confirmed with tcpdump that it is not even sent over the socket.
Has anyone else seen his? What might be the problem?
Thanks
_______________________________________________ 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
!DSPAM:4dde73da32761960016355!
-- Adam Kelloway Software Engineer NewPace Technology Development Inc. adam.kelloway@newpace.ca +1 902-406-8375 x1031 www.newpace.ca
how are you consuming events? are you using ESL? I recommend using fs_cli as a control to rule out faulty client logic. start fs_cli and issue the events command from there /events channel_hangup /log 0 then watch for the events there. P.S. you did not mention your platform or any other pertinent details about your setup. On Thu, May 26, 2011 at 1:51 PM, Adam Kelloway <adam.kelloway@newpace.ca> wrote:
I got the latest git yesterday from scratch just to make sure. Is there any way I can see debug output of the send operations?
I didn't notice this behaviour when I was running the 1.0.6 tar, it is only since I started using git that I saw it.
On 3:59 PM, Peter Olsson wrote:
Did you try latest git? I recently submitted a patch to handle resend on the socket, if the socket is really busy (and returns "would block" state). It's in latest git.
Besides that I've never seen any problems.
/Peter ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Adam Kelloway [adam.kelloway@newpace.ca] Skickat: den 26 maj 2011 17:36 Till: FreeSWITCH Users Help Ämne: [Freeswitch-users] event inconsistency
Hi there,
Has anyone ever had problems with events not being sent out over socket connections reliably? I am noticing that sometimes event notifications are sent, and sometimes they are not. For example, I have subscribed to CHANNEL_HANGUP, but depending on the timing of when I hangup the call (or when the dial plan hangs up), the event is not received. I confirmed with tcpdump that it is not even sent over the socket.
Has anyone else seen his? What might be the problem?
Thanks
_______________________________________________ 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
!DSPAM:4dde73da32761960016355!
-- Adam Kelloway Software Engineer NewPace Technology Development Inc. adam.kelloway@newpace.ca +1 902-406-8375 x1031 www.newpace.ca
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Thank you for that suggestion, I am running the latest git FS (from two days ago) with Ubuntu 10.10. My event-listening app uses ESL (the org.freeswitch.esl java library) to listen for the events. I see the same behaviour when I run the app on the local host or on a separate machine. Currently, I am doing the latter. Running tcpdump on the FS host shows that all traffic to the port that my app is listening on is reliably received. Listening for the event from fs_cli shows that event does get fired consistently, but tcpdump does not show it as being sent over the socket. Again, the behaviour is not consistent. Sometimes I do see the event sent out (both in tcpdump and in my app) and sometimes I don't. There doesn't appear to be any differences in the FS logs. Is the event notification to the fs_cli done in the same way as an esl notification? Thanks, Adam On 3:59 PM, Anthony Minessale wrote:
how are you consuming events? are you using ESL?
I recommend using fs_cli as a control to rule out faulty client logic.
start fs_cli and issue the events command from there
/events channel_hangup /log 0
then watch for the events there.
P.S. you did not mention your platform or any other pertinent details about your setup.
On Thu, May 26, 2011 at 1:51 PM, Adam Kelloway<adam.kelloway@newpace.ca> wrote:
I got the latest git yesterday from scratch just to make sure. Is there any way I can see debug output of the send operations?
I didn't notice this behaviour when I was running the 1.0.6 tar, it is only since I started using git that I saw it.
On 3:59 PM, Peter Olsson wrote:
Did you try latest git? I recently submitted a patch to handle resend on the socket, if the socket is really busy (and returns "would block" state). It's in latest git.
Besides that I've never seen any problems.
/Peter ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Adam Kelloway [adam.kelloway@newpace.ca] Skickat: den 26 maj 2011 17:36 Till: FreeSWITCH Users Help Ämne: [Freeswitch-users] event inconsistency
Hi there,
Has anyone ever had problems with events not being sent out over socket connections reliably? I am noticing that sometimes event notifications are sent, and sometimes they are not. For example, I have subscribed to CHANNEL_HANGUP, but depending on the timing of when I hangup the call (or when the dial plan hangs up), the event is not received. I confirmed with tcpdump that it is not even sent over the socket.
Has anyone else seen his? What might be the problem?
Thanks
_______________________________________________ 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
!DSPAM:4dde73da32761960016355!
-- Adam Kelloway Software Engineer NewPace Technology Development Inc. adam.kelloway@newpace.ca +1 902-406-8375 x1031 www.newpace.ca
_______________________________________________ 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
-- Adam Kelloway Software Engineer NewPace Technology Development Inc. adam.kelloway@newpace.ca +1 902-406-8375 x1031 www.newpace.ca
Yes, fs_cli uses the esl lib as well, so it's done in the exact same way. Default connection is through 127.0.0.1 though, so I'm not sure you're dumping these packets in tcpdump? Anyway, anything sent to fs_cli will definately be sent using the socket. I have an IVR application using ESL, with about 60-120 concurrent calls, and I've never seen this issue, so there must be something else going on there. I've never tried the Java libs, and I don't really know if everything there is up-to-date in that lib, but I guess it it should... /Peter -----Ursprungligt meddelande----- Från: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] För Adam Kelloway Skickat: den 27 maj 2011 15:39 Till: FreeSWITCH Users Help Ämne: Re: [Freeswitch-users] event inconsistency Thank you for that suggestion, I am running the latest git FS (from two days ago) with Ubuntu 10.10. My event-listening app uses ESL (the org.freeswitch.esl java library) to listen for the events. I see the same behaviour when I run the app on the local host or on a separate machine. Currently, I am doing the latter. Running tcpdump on the FS host shows that all traffic to the port that my app is listening on is reliably received. Listening for the event from fs_cli shows that event does get fired consistently, but tcpdump does not show it as being sent over the socket. Again, the behaviour is not consistent. Sometimes I do see the event sent out (both in tcpdump and in my app) and sometimes I don't. There doesn't appear to be any differences in the FS logs. Is the event notification to the fs_cli done in the same way as an esl notification? Thanks, Adam On 3:59 PM, Anthony Minessale wrote:
how are you consuming events? are you using ESL?
I recommend using fs_cli as a control to rule out faulty client logic.
start fs_cli and issue the events command from there
/events channel_hangup /log 0
then watch for the events there.
P.S. you did not mention your platform or any other pertinent details about your setup.
On Thu, May 26, 2011 at 1:51 PM, Adam Kelloway<adam.kelloway@newpace.ca> wrote:
I got the latest git yesterday from scratch just to make sure. Is there any way I can see debug output of the send operations?
I didn't notice this behaviour when I was running the 1.0.6 tar, it is only since I started using git that I saw it.
On 3:59 PM, Peter Olsson wrote:
Did you try latest git? I recently submitted a patch to handle resend on the socket, if the socket is really busy (and returns "would block" state). It's in latest git.
Besides that I've never seen any problems.
/Peter ________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Adam Kelloway [adam.kelloway@newpace.ca] Skickat: den 26 maj 2011 17:36 Till: FreeSWITCH Users Help Ämne: [Freeswitch-users] event inconsistency
Hi there,
Has anyone ever had problems with events not being sent out over socket connections reliably? I am noticing that sometimes event notifications are sent, and sometimes they are not. For example, I have subscribed to CHANNEL_HANGUP, but depending on the timing of when I hangup the call (or when the dial plan hangs up), the event is not received. I confirmed with tcpdump that it is not even sent over the socket.
Has anyone else seen his? What might be the problem?
Thanks
_______________________________________________ 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
-- Adam Kelloway Software Engineer NewPace Technology Development Inc. adam.kelloway@newpace.ca +1 902-406-8375 x1031 www.newpace.ca
_______________________________________________ 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
-- Adam Kelloway Software Engineer NewPace Technology Development Inc. adam.kelloway@newpace.ca +1 902-406-8375 x1031 www.newpace.ca _______________________________________________ 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 !DSPAM:4ddfaa9f32761727713633!
participants (3)
-
Adam Kelloway
-
Anthony Minessale
-
Peter Olsson