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