[Freeswitch-users] event inconsistency
Peter Olsson
peter.olsson at visionutveckling.se
Fri May 27 17:55:15 MSD 2011
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 at lists.freeswitch.org [mailto:freeswitch-users-bounces at 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 at 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 at lists.freeswitch.org [freeswitch-users-bounces at lists.freeswitch.org] för Adam Kelloway [adam.kelloway at 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 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
>>>
>>>
>>>
>>>
>>>
>>
>> --
>> Adam Kelloway
>> Software Engineer
>> NewPace Technology Development Inc.
>> adam.kelloway at newpace.ca
>> +1 902-406-8375 x1031
>> www.newpace.ca
>>
>>
>> _______________________________________________
>> 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
>>
>
>
--
Adam Kelloway
Software Engineer
NewPace Technology Development Inc.
adam.kelloway at newpace.ca
+1 902-406-8375 x1031
www.newpace.ca
_______________________________________________
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
!DSPAM:4ddfaa9f32761727713633!
More information about the FreeSWITCH-users
mailing list