[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeswitch-dev
Subject:    Re: [Freeswitch-dev] Couple of questions about esl in C
From:       "adam harris" <admharris () gmx ! com>
Date:       2011-10-20 1:02:43
Message-ID: 20111020010243.297650 () gmx ! com
[Download RAW message or body]


I want to try one more thing to see if it solves my problem

int response_timeout = (10 * 1000);
esl_status_t status;
status = esl_recv_event_timed(call_info->global_handle, response_timeout, 0, xxxxx); 

The note for the last paramter is:
\param[out] save_event If this is not NULL, will return the event received

What type of varible do I need to pass as the paramter and where will the return data \
go and how to access it.


I have noticed this channel variable
Application-Response: FILE%20PLAYED
which possibly might indicate playback completion?


> ----- Original Message -----
> From: Michael Collins
> Sent: 10/19/11 10:30 PM
> To: freeswitch-dev@lists.freeswitch.org
> Subject: Re: [Freeswitch-dev] Couple of questions about esl in C
> 
> On Wed, Oct 19, 2011 at 12:21 PM, adam harris <admharris@gmx.com> wrote:
> 
> > A few questions about esl in C
> > 
> > 1, After sending api playback command I want to wait until the file is done
> > playing. How do I do this is C
> 
> 
> > 2, Whats the proper way to use esl_recv_event_timed and esl_recv_even I
> > tried it like this esl_recv_event_timed(call_info->global_handle, 10, 0,
> > NULL); but that printed the complete event on screen. I want to do this in a
> > while loop to check for event-name
> > 
> > Would you mind putting some code snippets here or in
> pastebin.freeswitch.org?
> -MC


_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE

FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic