2002-05-12 11:48:14 +00:00
|
|
|
;
|
2005-08-22 19:29:29 +00:00
|
|
|
; Music on Hold -- Sample Configuration
|
2002-05-12 11:48:14 +00:00
|
|
|
;
|
2005-08-22 19:29:29 +00:00
|
|
|
|
2006-06-07 22:37:31 +00:00
|
|
|
;[samplemp3]
|
|
|
|
;mode=quietmp3
|
|
|
|
;directory=/var/lib/asterisk/mohmp3
|
|
|
|
;
|
2005-08-22 19:29:29 +00:00
|
|
|
; valid mode options:
|
2006-03-17 08:46:31 +00:00
|
|
|
; quietmp3 -- default
|
2005-08-22 19:29:29 +00:00
|
|
|
; mp3 -- loud
|
|
|
|
; mp3nb -- unbuffered
|
|
|
|
; quietmp3nb -- quiet unbuffered
|
2006-03-17 08:46:31 +00:00
|
|
|
; custom -- run a custom application (See examples below)
|
|
|
|
; files -- read files from a directory in any Asterisk supported
|
|
|
|
; media format. (See examples below)
|
2005-08-22 19:29:29 +00:00
|
|
|
|
|
|
|
;[manual]
|
|
|
|
;mode=custom
|
|
|
|
; Note that with mode=custom, a directory is not required, such as when reading
|
|
|
|
; from a stream.
|
|
|
|
;directory=/var/lib/asterisk/mohmp3
|
|
|
|
;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s
|
|
|
|
|
|
|
|
;[ulawstream]
|
|
|
|
;mode=custom
|
2005-08-25 16:11:46 +00:00
|
|
|
;application=/usr/bin/streamplayer 192.168.100.52 888
|
2005-08-22 19:29:29 +00:00
|
|
|
;format=ulaw
|
2005-01-04 20:55:43 +00:00
|
|
|
|
2005-10-04 22:51:59 +00:00
|
|
|
; mpg123 on Solaris does not always exit properly; madplay may be a better
|
|
|
|
; choice
|
2005-08-25 02:40:08 +00:00
|
|
|
;[solaris]
|
|
|
|
;mode=custom
|
|
|
|
;directory=/var/lib/asterisk/mohmp3
|
|
|
|
;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12
|
|
|
|
;
|
|
|
|
|
2005-01-04 20:55:43 +00:00
|
|
|
;
|
|
|
|
; File-based (native) music on hold
|
|
|
|
;
|
|
|
|
; This plays files directly from the specified directory, no external
|
|
|
|
; processes are required. Files are played in normal sorting order
|
|
|
|
; (same as a sorted directory listing), and no volume or other
|
|
|
|
; sound adjustments are available. If the file is available in
|
|
|
|
; the same format as the channel's codec, then it will be played
|
|
|
|
; without transcoding (same as Playback would do in the dialplan).
|
|
|
|
; Files can be present in as many formats as you wish, and the
|
|
|
|
; 'best' format will be chosen at playback time.
|
|
|
|
;
|
|
|
|
; NOTE:
|
|
|
|
; If you are not using "autoload" in modules.conf, then you
|
|
|
|
; must ensure that the format modules for any formats you wish
|
|
|
|
; to use are loaded _before_ res_musiconhold. If you do not do
|
|
|
|
; this, res_musiconhold will skip the files it is not able to
|
|
|
|
; understand when it loads.
|
|
|
|
;
|
2005-08-22 19:29:29 +00:00
|
|
|
|
2006-06-07 22:37:31 +00:00
|
|
|
[default]
|
|
|
|
mode=files
|
|
|
|
directory=/var/lib/asterisk/moh
|
2005-08-22 19:29:29 +00:00
|
|
|
;
|
|
|
|
;[native-random]
|
|
|
|
;mode=files
|
2006-06-07 22:37:31 +00:00
|
|
|
;directory=/var/lib/asterisk/moh
|
2005-08-22 19:29:29 +00:00
|
|
|
;random=yes ; Play the files in a random order
|