Advertisement
Guest User

Untitled

a guest
Sep 13th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. # cat musiconhold.conf
  2. ;
  3. ; Music on Hold -- Sample Configuration
  4. ;
  5. [general]
  6. ;cachertclasses=yes ; use 1 instance of moh class for all users who are using it,
  7. ; decrease consumable cpu cycles and memory
  8. ; disabled by default
  9.  
  10.  
  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. ; =========
  21. ; File-based (native) music on hold
  22. ; =========
  23. ;
  24. ; This plays files directly from the specified directory, no external
  25. ; processes are required. Files are played in normal sorting order
  26. ; (same as a sorted directory listing), and no volume or other
  27. ; sound adjustments are available. If the file is available in
  28. ; the same format as the channel's codec, then it will be played
  29. ; without transcoding (same as Playback would do in the dialplan).
  30. ; Files can be present in as many formats as you wish, and the
  31. ; 'best' format will be chosen at playback time.
  32. ;
  33. ; The path specified can be either an absolute path (starts with '/'),
  34. ; or a relative path; relative paths are interpreted as being relative
  35. ; to the 'astdatalibdir' in asterisk.conf, which defaults to
  36. ; /var/lib/asterisk.
  37. ;
  38. ; NOTE:
  39. ; If you are not using "autoload" in modules.conf, then you
  40. ; must ensure that the format modules for any formats you wish
  41. ; to use are loaded _before_ res_musiconhold. If you do not do
  42. ; this, res_musiconhold will skip the files it is not able to
  43. ; understand when it loads.
  44. ;
  45.  
  46. [default]
  47. mode=files
  48. directory=moh
  49. ;
  50. ;[native-random]
  51. ;mode=files
  52. ;directory=moh
  53. ;digit=# ; If this option is set for a class, then when callers are
  54. ; ; listening to music on hold, they can press this digit, and
  55. ; ; they will switch to listening to this music class.
  56. ;sort=random ; Sort the files in random order
  57.  
  58. ;[native-alphabetical]
  59. ;mode=files
  60. ;directory=moh
  61. ;sort=alpha ; Sort the files in alphabetical order. If this option is
  62. ; ; not specified, the sort order is undefined.
  63.  
  64. ; =========
  65. ; Other (non-native) playback methods
  66. ; =========
  67.  
  68. ;[manual]
  69. ;mode=custom
  70. ; Note that with mode=custom, a directory is not required, such as when reading
  71. ; from a stream.
  72. ;directory=/var/lib/asterisk/mohmp3
  73. ;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s
  74.  
  75. ;[ulawstream]
  76. ;mode=custom
  77. ;application=/usr/bin/streamplayer 192.168.100.52 888
  78. ;format=ulaw
  79.  
  80. ; mpg123 on Solaris does not always exit properly; madplay may be a better
  81. ; choice
  82. ;[solaris]
  83. ;mode=custom
  84. ;directory=/var/lib/asterisk/mohmp3
  85. ;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12
  86.  
  87. #include => /etc/asterisk/pdr.conf
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101. # cat pdr.conf
  102. [test]
  103. mode=files
  104. directory=moh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement