2 ; Music on Hold -- Sample Configuration
5 ;cachertclasses=yes ; use 1 instance of moh class for all users who are using it,
6 ; decrease consumable cpu cycles and memory
11 ; files -- read files from a directory in any Asterisk supported
16 ; quietmp3nb -- quiet unbuffered
17 ; custom -- run a custom application (See examples below)
20 ; File-based (native) music on hold
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.
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.
42 directory=/var/lib/asterisk/moh
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]
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.
59 ; Other (non-native) playback methods
64 ; Note that with mode=custom, a directory is not required, such as when reading
66 ;directory=/var/lib/asterisk/mohmp3
67 ;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s
71 ;application=/usr/bin/streamplayer 192.168.100.52 888
74 ; mpg123 on Solaris does not always exit properly; madplay may be a better
78 ;directory=/var/lib/asterisk/mohmp3
79 ;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12