asterisk/musiconhold.conf

Fri, 15 Oct 2010 19:06:09 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 15 Oct 2010 19:06:09 +0200
changeset 263
f4a0b439d0fb
permissions
-rw-r--r--

Correct shared library and plugin link logic, as well as informal text.
Update file server URL, update build resource estimations, correct RPATH
logic, allow for qmake(1) static to shared library changes via CONFIG
argument, correct documentation broken title and index links, correct
shared library install path, install only one set of (correct) plugins,
install the designer shared library (as required by QtCreator), announce
features related to shared linking using qmake(1), and correclty
substitute hard coded paths in prl and la library files.

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

mercurial