ControlPlayback’s options
Tags: ael, asterisk, bhati, CPLAYBACKSTATUS, pause, pause key, virendra, wilfer
On 2011-05-30 14:32, virendra bhati wrote:
> Hi List,
>
> Asterisk ‘s *ControlPlayback* will used for play any recorded file as
> an audio player. Is it possible that we can use it for multiple
> forward and rewind ?
>
> ex:-
> original: ControlPlayback(filename,skipms,ff,rew,stop,pause)
> expected
> ControlPlayback(filename,skip1,skip2,skip3,forward1,rewind1,forward2,rewind2,forward3,rewind3,stop,pause)
> :
Yes, you can use the CPLAYBACKSTATUS, CPLAYBACKOFFSET and
CPLAYBACKSTOPKEY variables to get this behavior.
All you have to do is to list the additional keys and stop keys and
implement this in your dialplan…
I’ve attached some ael I use for this to implement 1 and 3 as 1 minute
rewind/forward. 4 and 6 as 5 minutes rewind/forward and 7 and 9 as 15
minutes.
5 I use as the pause key, and */# to switch recording.
Greetings,
Johan Wilfer