[Freeswitch-users] playback: Easy ways to handle different situations?

David Knell dave at 3c.co.uk
Tue Oct 21 06:19:23 PDT 2008


On Oct 21, 2008, at 12:11 PM, Dennis wrote:

> 2008/10/21 Brian West <brian at freeswitch.org>:
>
>> If you add "event-lock:true" to your message you send then it will do
>> what you want.  It will play the files in order as you expect.
>
> Thanks, this works quite nice for playing a list of soundfiles.
> BUT, there is a big flaw when using "event-lock: true". There is no
> chance to stop playing the list, if I whish to. If a long list of
> files is playing and an event accours, which makes me want to stop
> playing all files, fs does not react on new commands, till all files
> where played back - even "break" won't do anything.
>
> Is there a solution for this?

Hi Dennis,

The solution is to play each file individually.  You'll get a
CHANNEL_EXECUTE_COMPLETE event with the application set to
'playback' once the first file ends; you then play the second and so on.

Cheers --

Dave





More information about the FreeSWITCH-users mailing list