musiconhold.conf.sample 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ;
  2. ; Music on Hold -- Sample Configuration
  3. ;
  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
  8. ;preferchannelclass=yes ; Prefer the musicclass as defined by CHANNEL(musicclass),
  9. ; over a class set by an application (e.g. a musicclass set on a queue).
  10. ; Defaults to yes.
  11. ; valid mode options:
  12. ; files -- read files from a directory in any Asterisk supported
  13. ; media format
  14. ; quietmp3 -- default
  15. ; mp3 -- loud
  16. ; mp3nb -- unbuffered
  17. ; quietmp3nb -- quiet unbuffered
  18. ; custom -- run a custom application (See examples below)
  19. ; =========
  20. ; File-based (native) music on hold
  21. ; =========
  22. ;
  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.
  31. ;
  32. ; The path specified can be either an absolute path (starts with '/'),
  33. ; or a relative path; relative paths are interpreted as being relative
  34. ; to the 'astdatalibdir' in asterisk.conf, which defaults to
  35. ; /var/lib/asterisk.
  36. ;
  37. ; NOTE:
  38. ; If you are not using "autoload" in modules.conf, then you
  39. ; must ensure that the format modules for any formats you wish
  40. ; to use are loaded _before_ res_musiconhold. If you do not do
  41. ; this, res_musiconhold will skip the files it is not able to
  42. ; understand when it loads.
  43. ;
  44. [default]
  45. mode=files
  46. directory=moh
  47. ;
  48. ;[native-random]
  49. ;mode=files
  50. ;directory=moh
  51. ;digit=# ; If this option is set for a class, then when callers are
  52. ; ; listening to music on hold, they can press this digit, and
  53. ; ; they will switch to listening to this music class.
  54. ;announcement=queue-thankyou ;If this option is set for a class, then
  55. ; ; when callers get put on hold, the specified sound will be
  56. ; ; be played to them. Also, if using modes that Asterisk
  57. ; ; controls the playlist for (files, mp3, etc), the same
  58. ; ; sound will also be played between MOH songs.
  59. ;sort=random ; Sort the files in random order. Other sort options are:
  60. ; ; 'alpha' and 'randstart'. If 'alpha', the files are sorted
  61. ; ; in alphabetical order. If 'randstart', the files are sorted
  62. ; ; in alphabetical order as well, but the first file is chosen
  63. ; ; at random. If unspecified, the sort order is undefined.
  64. ;[native-alphabetical]
  65. ;mode=files
  66. ;directory=moh
  67. ;sort=alpha ; Sort the files in alphabetical order.
  68. ; =========
  69. ; Other (non-native) playback methods
  70. ; =========
  71. ;[manual]
  72. ;mode=custom
  73. ; Note that with mode=custom, a directory is not required, such as when reading
  74. ; from a stream.
  75. ;directory=/var/lib/asterisk/mohmp3
  76. ;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s
  77. ;[ulawstream]
  78. ;mode=custom
  79. ;application=/usr/bin/streamplayer 192.168.100.52 888
  80. ;format=ulaw
  81. ; mpg123 on Solaris does not always exit properly; madplay may be a better
  82. ; choice
  83. ;[solaris]
  84. ;mode=custom
  85. ;directory=/var/lib/asterisk/mohmp3
  86. ;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12