
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
404
|
Chapter 17: Asterisk Reference
conversation into a single file upon termination of the call. The Sox package must be
compiled and installed in order for this to work.
MP3Player
MP3Player(filename)
Plays an MP3 sound file on the current channel. Playback can be stopped and the
priority incremented by dialing any digit.
MusicOnHold
MusicOnHold(class)
Plays hold music indefinitely from the specified class. Music-on-hold classes are
established with simple directives in /etc/asterisk/musiconhold.conf. Normally these
directives just point a certain class to a certain directory that contains MP3 files, but
as this example shows, you can also use a streaming source:
; musiconhold.conf
default => mp3:/var/lib/asterisk/onhold,http://www.streamvoip.us/royalty-free:8000
The config needs a blank directory called onhold in /var/lib/asterisk using:
# mkdir /var/lib/asterisk/onhold
NoCDR
NoCDR( )
Insures Asterisk will not save any CDR data for the current call.
NoOp
NoOp(value)
Echos values to the console for debugging purposes.
ParkedCall
ParkedCall(extension)
Answers the parked call at the specified parked call extension.
Playback
Playback(filename)
Answers the call on the current channel and plays the specified sound file.
Playtones
Playtones(tone)