[Freeswitch-users] FW: Inbound ESL .RecvEventTimed(0) Blocking?

Anthony Minessale anthony.minessale at gmail.com
Fri Apr 6 21:59:46 MSD 2012


try 1 instead of 0 i believe 0 means forever

On Fri, Apr 6, 2012 at 2:53 AM, Michael Lutz <mytemike72 at gmail.com> wrote:
> Hi,
>
>
>
> Can someone please give me an answer, I am problaby not the first to notice…
>
>
>
> I need to know why (and how to avoid)  ESLevent RecvEventTimed(0) being
> blocking and keeps waiting for event to arrive,  as it should not.
>
> It seems to ignore any form of time you pass as parameter and just always
> wait for an event.
>
>
>
> Btw, I am on Windows…
>
>
>
> Thanks!
>
> Mike.
>
>
>
> From: Michael Lutz
> Sent: donderdag 5 april 2012 22:19
> To: 'FreeSWITCH Users Help'
> Subject: Inbound ESL .RecvEventTimed(0) Blocking?
>
>
>
> Hi Guys,
>
>
>
> Can anybody please help me, I am using .RecvEventTimed(0) on a inbound ESL
> connection to check if events are there.
>
> According to specs, this should be non-blocking and as the wiki says “used
> for polling”.
>
>
>
> However, the code just seems to stop until it gets an event.
>
>
>
> I am listening with a filter for a specific uuid like:
>
>
>
> ESLevent eslEvent = fsConnection.SendRecv("event plain ALL");
>
> eslEvent = fsConnection.SendRecv("filter Unique-ID " + thisCall.callId);
>
>>
> Some code…
>
>>
> eslEvent = fsConnection.RecvEventTimed(0);
>
>
>
> But it just waits for an event on the RecvEventTimed(0);
>
> When I generate an event (for example pressing a dtmf) is continues…
>
>
>
> Is there some extra thing I need to do?
>
>
>
> Thanks,
>
> Mike.
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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/
Twitter: http://twitter.com/FreeSWITCH_wire

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
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list