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 ?
> original: ControlPlayback(filename,skipms,ff,rew,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
5 I use as the pause key, and */# to switch recording.