[Freeswitch-users] Api function to check if media is currently being played
Peter Olsson
peter.olsson at visionutveckling.se
Sun Apr 1 17:00:39 MSD 2012
You will need to poll the events coming in. When the file playback is finished it will return an event.
To make it easy, just log all events coming in to start with, and after that try to handle it accordingly.
/Peter
________________________________
Från: freeswitch-users-bounces at lists.freeswitch.org [freeswitch-users-bounces at lists.freeswitch.org] för Michael Lutz [mytemike72 at gmail.com]
Skickat: den 1 april 2012 14:05
Till: 'FreeSWITCH Users Help'
Ämne: [Freeswitch-users] Api function to check if media is currently being played
Hi All,
I am using an remote host to control my parked call using an inbound socket connection.
I am sending “uuid_broadcast” to play an audio file to the call. Before it is being bridged. Everything works ok.
The problem is I need to continue my code (ESL) to instruct the bridge etc, but I need to do that when the audio file being played is finished.
Is there an api function for this?
I tried “uuid_buglist” to check if that would return me some useful data, but that doesn’t seem to be working (at least for what I need ..)
Is the something like “uuid_mediaReady” ? show api didn’t show me something similar..
Thanks!,
Mike.
Ps. I believe tricking with checking file length of al wavs and calculating the duration upfront would not be the way doing this… ;-)
!DSPAM:4f78440532761728310852!
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list