https://manuais.iessanclemente.net/index.php?title=Arquivo_musiconhold.conf&feed=atom&action=historyArquivo musiconhold.conf - Historial de revisiones2024-04-10T06:22:49ZHistorial de revisiones de esta página en el wikiMediaWiki 1.36.2https://manuais.iessanclemente.net/index.php?title=Arquivo_musiconhold.conf&diff=12071&oldid=prevVeiga en 14:48 1 jun 20092009-06-01T14:48:07Z<p></p>
<p><b>Página nueva</b></p><div><source lang="text"><br />
;<br />
; Music on Hold -- Sample Configuration<br />
;<br />
[general]<br />
;cachertclasses=yes ; use 1 instance of moh class for all users who are using it,<br />
; decrease consumable cpu cycles and memory<br />
; disabled by default<br />
<br />
<br />
; valid mode options:<br />
; files -- read files from a directory in any Asterisk supported <br />
; media format<br />
; quietmp3 -- default <br />
; mp3 -- loud<br />
; mp3nb -- unbuffered<br />
; quietmp3nb -- quiet unbuffered<br />
; custom -- run a custom application (See examples below)<br />
<br />
; =========<br />
; File-based (native) music on hold<br />
; =========<br />
;<br />
; This plays files directly from the specified directory, no external<br />
; processes are required. Files are played in normal sorting order<br />
; (same as a sorted directory listing), and no volume or other<br />
; sound adjustments are available. If the file is available in<br />
; the same format as the channel's codec, then it will be played<br />
; without transcoding (same as Playback would do in the dialplan).<br />
; Files can be present in as many formats as you wish, and the<br />
; 'best' format will be chosen at playback time.<br />
;<br />
; NOTE:<br />
; If you are not using "autoload" in modules.conf, then you<br />
; must ensure that the format modules for any formats you wish<br />
; to use are loaded _before_ res_musiconhold. If you do not do<br />
; this, res_musiconhold will skip the files it is not able to<br />
; understand when it loads.<br />
;<br />
<br />
[default]<br />
mode=files<br />
directory=/var/lib/asterisk/moh<br />
<br />
[blues]<br />
mode=files<br />
directory=/var/lib/asterisk/moh/blues<br />
<br />
[americanas]<br />
mode=files<br />
directory=/var/lib/asterisk/moh/americanas<br />
<br />
[pop]<br />
mode=files<br />
directory=/var/lib/asterisk/moh/pop<br />
<br />
;<br />
;[native-random]<br />
;mode=files<br />
;directory=/var/lib/asterisk/moh<br />
;digit=# ; If this option is set for a class, then when callers are<br />
; ; listening to music on hold, they can press this digit, and<br />
; ; they will switch to listening to this music class.<br />
;sort=random ; Sort the files in random order<br />
<br />
;[native-alphabetical]<br />
;mode=files<br />
;directory=/var/lib/asterisk/moh<br />
;sort=alpha ; Sort the files in alphabetical order. If this option is<br />
; ; not specified, the sort order is undefined.<br />
<br />
; =========<br />
; Other (non-native) playback methods<br />
; =========<br />
<br />
;[manual]<br />
;mode=custom<br />
; Note that with mode=custom, a directory is not required, such as when reading<br />
; from a stream.<br />
;directory=/var/lib/asterisk/mohmp3<br />
;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s<br />
<br />
;[ulawstream]<br />
;mode=custom<br />
;application=/usr/bin/streamplayer 192.168.100.52 888<br />
;format=ulaw<br />
<br />
; mpg123 on Solaris does not always exit properly; madplay may be a better<br />
; choice<br />
;[solaris]<br />
;mode=custom<br />
;directory=/var/lib/asterisk/mohmp3<br />
;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12<br />
</source></div>Veiga