moh files will now be distributed in native format, not mp3, so...
[asterisk/asterisk.git] / configs / musiconhold.conf.sample
1 ;
2 ; Music on Hold -- Sample Configuration
3 ;
4
5 ;[samplemp3]
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 (See examples below)
15 ; files         -- read files from a directory in any Asterisk supported 
16 ;                  media format. (See examples below)
17
18 ;[manual]
19 ;mode=custom
20 ; Note that with mode=custom, a directory is not required, such as when reading
21 ; from a stream.
22 ;directory=/var/lib/asterisk/mohmp3
23 ;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s
24
25 ;[ulawstream]
26 ;mode=custom
27 ;application=/usr/bin/streamplayer 192.168.100.52 888
28 ;format=ulaw
29
30 ; mpg123 on Solaris does not always exit properly; madplay may be a better
31 ; choice
32 ;[solaris]
33 ;mode=custom
34 ;directory=/var/lib/asterisk/mohmp3
35 ;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12
36 ;
37
38 ;
39 ; File-based (native) music on hold
40 ;
41 ; This plays files directly from the specified directory, no external
42 ; processes are required. Files are played in normal sorting order
43 ; (same as a sorted directory listing), and no volume or other
44 ; sound adjustments are available. If the file is available in
45 ; the same format as the channel's codec, then it will be played
46 ; without transcoding (same as Playback would do in the dialplan).
47 ; Files can be present in as many formats as you wish, and the
48 ; 'best' format will be chosen at playback time.
49 ;
50 ; NOTE:
51 ; If you are not using "autoload" in modules.conf, then you
52 ; must ensure that the format modules for any formats you wish
53 ; to use are loaded _before_ res_musiconhold. If you do not do
54 ; this, res_musiconhold will skip the files it is not able to
55 ; understand when it loads.
56 ;
57
58 [default]
59 mode=files
60 directory=/var/lib/asterisk/moh
61 ;
62 ;[native-random]
63 ;mode=files
64 ;directory=/var/lib/asterisk/moh
65 ;random=yes     ; Play the files in a random order