Minor formatting change to test a mantis change ...
[asterisk-bristuff.git] / configs / musiconhold.conf.sample
blob4df1afd4f8dae9db2b9c8524a6d1e5c06cf400bc
2 ; Music on Hold -- Sample Configuration
4 [general]
5 ;cachertclasses=yes ; use 1 instance of moh class for all users who are using it,
6                     ; decrease consumable cpu cycles and memory
7                     ; disabled by default
10 ; valid mode options:
11 ; files         -- read files from a directory in any Asterisk supported 
12 ;                  media format
13 ; quietmp3      -- default 
14 ; mp3           -- loud
15 ; mp3nb         -- unbuffered
16 ; quietmp3nb    -- quiet unbuffered
17 ; custom        -- run a custom application (See examples below)
19 ; =========
20 ; File-based (native) music on hold
21 ; =========
23 ; This plays files directly from the specified directory, no external
24 ; processes are required. Files are played in normal sorting order
25 ; (same as a sorted directory listing), and no volume or other
26 ; sound adjustments are available. If the file is available in
27 ; the same format as the channel's codec, then it will be played
28 ; without transcoding (same as Playback would do in the dialplan).
29 ; Files can be present in as many formats as you wish, and the
30 ; 'best' format will be chosen at playback time.
32 ; NOTE:
33 ; If you are not using "autoload" in modules.conf, then you
34 ; must ensure that the format modules for any formats you wish
35 ; to use are loaded _before_ res_musiconhold. If you do not do
36 ; this, res_musiconhold will skip the files it is not able to
37 ; understand when it loads.
40 [default]
41 mode=files
42 directory=/var/lib/asterisk/moh
44 ;[native-random]
45 ;mode=files
46 ;directory=/var/lib/asterisk/moh
47 ;digit=#        ; If this option is set for a class, then when callers are
48 ;               ; listening to music on hold, they can press this digit, and
49 ;               ; they will switch to listening to this music class.
50 ;sort=random    ; Sort the files in random order
52 ;[native-alphabetical]
53 ;mode=files
54 ;directory=/var/lib/asterisk/moh
55 ;sort=alpha     ; Sort the files in alphabetical order.  If this option is
56 ;               ; not specified, the sort order is undefined.
58 ; =========
59 ; Other (non-native) playback methods
60 ; =========
62 ;[manual]
63 ;mode=custom
64 ; Note that with mode=custom, a directory is not required, such as when reading
65 ; from a stream.
66 ;directory=/var/lib/asterisk/mohmp3
67 ;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s
69 ;[ulawstream]
70 ;mode=custom
71 ;application=/usr/bin/streamplayer 192.168.100.52 888
72 ;format=ulaw
74 ; mpg123 on Solaris does not always exit properly; madplay may be a better
75 ; choice
76 ;[solaris]
77 ;mode=custom
78 ;directory=/var/lib/asterisk/mohmp3
79 ;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12