Name
MP3Player() — Plays an MP3 file or stream
Uses the mpg123
program to play the given location
to the
caller. The specified location
can be
either a filename or a valid URL. The caller can exit by pressing any
key.
Warning
The correct version of mpg123 must be installed for this application to work properly. Asterisk currently works best with mpg123-0.59r. Other versions may give less than desirable results.
exten => 123,1,Answer() exten => 123,2,MP3Player(test.mp3) exten => 123,1,Answer()exten => 123,2,MP3Player(http://example.com/test.mp3)
Get Asterisk: The Future of Telephony, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.