[Asterisk-Users] Mplayer as replacement to mgp123 in MP3Player cmd

Matt Riddell matt.riddell at sineapps.com
Sun Aug 28 16:37:25 MST 2005


cmisip wrote:
> I want to be able to send a dtmf key to asterisk and have mplayer
> forward or rewind.

pabx*CLI> show application ControlPlayback
pabx*CLI>
  -= Info about application 'ControlPlayback' =-

[Synopsis]
Play a file with fast forward and rewind

[Description]
ControlPlayback(filename[|skipms[|ffchar[|rewchar[|stopchar[|pausechar[|restartchar]]]]]]):
  Plays  back  a  given  filename (do not put extension). Options may also
  be included following a pipe symbol.  You can use * and # to rewind and
  fast forward the playback specified. If 'stopchar' is added the file will
  terminate playback when 'stopchar' is pressed. If 'restartchar' is added,
the file
  will restart when 'restartchar' is pressed. Returns -1 if the channel
  was hung up. if the file does not exist jumps to n+101 if it present.

  Example:  exten => 1234,1,ControlPlayback(file|4000|*|#|1|0|5)


-- 
Cheers,

Matt Riddell
_______________________________________________

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)



More information about the asterisk-users mailing list