update sample to reflect new nodir option
[asterisk/asterisk.git] / configs / musiconhold.conf.sample
1 ;
2 ; Music on hold class definitions
3 ;
4 [classes]
5 default => quietmp3:/var/lib/asterisk/mohmp3
6 ;loud => mp3:/var/lib/asterisk/mohmp3
7 ;random => quietmp3:/var/lib/asterisk/mohmp3,-z
8 ;unbuffered => mp3nb:/var/lib/asterisk/mohmp3
9 ;quietunbuf => quietmp3nb:/var/lib/asterisk/mohmp3
10 ; Note that the custom mode cannot handle escaped parameters (specifically embedded spaces)
11 ;manual => custom:/var/lib/asterisk/mohmp3,/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s
12 ; For a custom app, reading from a directory may not be necessary
13 ;manual => custom:nodir,/bin/my-dirless-app myarg
14
15 ;
16 ; File-based (native) music on hold
17 ;
18 ; This plays files directly from the specified directory, no external
19 ; processes are required. Files are played in normal sorting order
20 ; (same as a sorted directory listing), and no volume or other
21 ; sound adjustments are available. If the file is available in
22 ; the same format as the channel's codec, then it will be played
23 ; without transcoding (same as Playback would do in the dialplan).
24 ; Files can be present in as many formats as you wish, and the
25 ; 'best' format will be chosen at playback time.
26 ;
27 ; NOTE:
28 ; If you are not using "autoload" in modules.conf, then you
29 ; must ensure that the format modules for any formats you wish
30 ; to use are loaded _before_ res_musiconhold. If you do not do
31 ; this, res_musiconhold will skip the files it is not able to
32 ; understand when it loads.
33 ;
34 [moh_files]
35 ;native => /var/lib/asterisk/moh-native
36 ;native-random => /var/lib/asterisk/moh-native,r