support new format for musiconhold.conf (issue #4908)
[asterisk/asterisk.git] / configs / musiconhold.conf.sample
1 ;
2 ; Music on Hold -- Sample Configuration
3 ;
4
5 [default]
6 mode=quietmp3
7 directory=/var/lib/asterisk/mohmp3
8
9 ; valid mode options:
10 ; quietmp3      -- default
11 ; mp3           -- loud
12 ; mp3nb         -- unbuffered
13 ; quietmp3nb    -- quiet unbuffered
14 ; custom        -- run a custom application 
15 ; files         -- read files from a directory in any Asterisk supported format
16
17 ;[manual]
18 ;mode=custom
19 ; Note that with mode=custom, a directory is not required, such as when reading
20 ; from a stream.
21 ;directory=/var/lib/asterisk/mohmp3
22 ;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s
23
24 ;[ulawstream]
25 ;mode=custom
26 ;application=/usr/bin/streamplayer 80.254.173.176 888
27 ;format=ulaw
28
29 ;
30 ; File-based (native) music on hold
31 ;
32 ; This plays files directly from the specified directory, no external
33 ; processes are required. Files are played in normal sorting order
34 ; (same as a sorted directory listing), and no volume or other
35 ; sound adjustments are available. If the file is available in
36 ; the same format as the channel's codec, then it will be played
37 ; without transcoding (same as Playback would do in the dialplan).
38 ; Files can be present in as many formats as you wish, and the
39 ; 'best' format will be chosen at playback time.
40 ;
41 ; NOTE:
42 ; If you are not using "autoload" in modules.conf, then you
43 ; must ensure that the format modules for any formats you wish
44 ; to use are loaded _before_ res_musiconhold. If you do not do
45 ; this, res_musiconhold will skip the files it is not able to
46 ; understand when it loads.
47 ;
48
49 ;[native]
50 ;mode=files
51 ;directory=/var/lib/asterisk/moh-native
52 ;
53 ;[native-random]
54 ;mode=files
55 ;directory=/var/lib/asterisk/moh-native
56 ;random=yes     ; Play the files in a random order